NoiseConfig

data class NoiseConfig(val noiseSuppression: Boolean? = true, val echoCancellation: Boolean? = true, val autoGainControl: Boolean? = true, val highPassFilter: Boolean? = false)

Audio-processing switches for a microphone track, passed to VideoSDK.createMicrophoneAudioTrack.

Passing a config at all means its values decide, so the defaults below apply to any flag you leave out; pass no config, or null for one flag, to take the chosen audio encoder profile's values instead. The flags are read when the microphone opens, so a change takes effect on the next unmute, not on audio already being sent.

Constructors

Link copied to clipboard
constructor(noiseSuppression: Boolean? = true, echoCancellation: Boolean? = true, autoGainControl: Boolean? = true, highPassFilter: Boolean? = false)

Properties

Link copied to clipboard

levels out a quiet or a loud speaker. Off is better for music. Default true.

Link copied to clipboard

removes the loudspeaker's output from the microphone signal. Turning it off on a speakerphone call will echo. Default true.

Link copied to clipboard
val highPassFilter: Boolean? = false

cuts low-frequency rumble. Default false.

Link copied to clipboard

removes steady background noise. Leave it on for speech; turn it off when the microphone is carrying music. Default true.