Skip to main content

How to turn off noise reduction, echo cancellation, and automatic gain control?

If your classroom integrates or uses audio mixing or other tools, and you want to turn off noise reduction, echo cancellation, and gain control functions, add the following code to packages/agora-classroom-sdk/src/infra/api/index.tsx:


_19
if (AgoraRteRuntimePlatform.Electron === AgoraRteEngineConfig.platform) {
_19
rtcSDKParameters = [
_19
{ 'rtc.audio.aec.enable': false },
_19
{ 'rtc.audio.agc.enable': false },
_19
{ 'rtc.audio.ans.enable': false },
_19
];
_19
} else {
_19
rtcSDKParameters = [
_19
{
_19
MEDIA_DEVICE_CONSTRAINTS: {
_19
audio: {
_19
autoGainControl: false,
_19
echoCancellation: false,
_19
noiseSuppression: false,
_19
},
_19
},
_19
},
_19
];
_19
}

1680084350900

vundefined