AudioTrackConstraints

data class AudioTrackConstraints(val volume: Double? = null, val sampleRate: Int? = null, val sampleSize: Int? = null, val echoCancellation: Boolean? = null, val autoGainControl: Boolean? = null, val noiseSuppression: Boolean? = null, val latency: Double? = null, val channelCount: Int? = null)(source)

Constraints for audio tracks.

See also

Constructors

Link copied to clipboard
constructor(volume: Double? = null, sampleRate: Int? = null, sampleSize: Int? = null, echoCancellation: Boolean? = null, autoGainControl: Boolean? = null, noiseSuppression: Boolean? = null, latency: Double? = null, channelCount: Int? = null)

Properties

Link copied to clipboard

Whether automatic gain control is enabled.

Link copied to clipboard
val channelCount: Int? = null

The number of audio channels. Not supported for Android.

Link copied to clipboard

Whether echo cancellation is enabled.

Link copied to clipboard
val latency: Double? = null

The latency of the audio in seconds. Not supported for Android.

Link copied to clipboard

Whether noise suppression is enabled.

Link copied to clipboard
val sampleRate: Int? = null

The sample rate of the audio in Hz.

Link copied to clipboard
val sampleSize: Int? = null

The sample size of the audio in bits. Not supported for Android.

Link copied to clipboard
val volume: Double? = null

The volume of the audio.