Skip to navigation

setNoiseSuppression

View as MarkdownOpen in Claude
setNoiseSuppression(enabled): Promise<boolean>

Toggle browser noise suppression on the local mic at runtime.

Parameters

enabled
booleanRequired

Whether noise suppression should be enabled.

Returns

Promise<boolean> — whether the constraint reached the microphone.

false is an outcome rather than an error: a leg sending media the SDK did not capture is left alone. A UI that reflects the toggle must read this value instead of assuming the call succeeded. Any failure behind a false is also reported on errors$.

Examples

Toggle from a UI switch

denoiseSwitch.addEventListener('change', async (e) => {
await call.setNoiseSuppression(e.target.checked);
});

See