AudioWaveformInfo

@JsonClass(generateAdapter = true)
data class AudioWaveformInfo(@Json(name = "duration") val duration: Int? = null, @Json(name = "waveform") val waveform: List<Int?>? = null)

See https://github.com/matrix-org/matrix-doc/blob/travis/msc/audio-waveform/proposals/3246-audio-waveform.md

Constructors

Link copied to clipboard
fun AudioWaveformInfo(@Json(name = "duration") duration: Int? = null, @Json(name = "waveform") waveform: List<Int?>? = null)

Properties

Link copied to clipboard
val duration: Int? = null
Link copied to clipboard
val waveform: List<Int?>? = null

The array should have no less than 30 elements and no more than 120. List of integers between zero and 1024, inclusive.