Mute and Unmute Audio

When using full duplex audio you have the ability to mute/unmute your microphone with the fullDuplexUnmute() and fullDuplexMute() methods.

Before allowing the end user to mute/unmute the microphone you should make sure you have received a MIC_STATE_UNAVAILABLE state from the onMicStateChange event. See Full Duplex for more information.

// Unmute the microphone
aloAudio.fullDuplexUnmute();

// Mute the microphone
aloAudio.fullDuplexMute();

Last updated

Logo

© Copyright 2024 ALO.ai, Inc. • All Rights Reserved