Documentation

Support

Vivox Core SDK

Vivox Core SDK

Acoustic echo cancellation

Information on AEC on Android devices.
Read time 1 minuteLast updated 20 hours ago

When an Android device plays and records audio at the same time, there is the possibility that a capture device could pick up the audio that is playing. The Vivox SDK includes acoustic echo cancellation (AEC), which helps to prevent this type of audio capture from occurring. In some scenarios, Smart Platform Audio Management (SPAM) might not be the best option to use, such as when a particular Android device does not support hardware echo cancellation. To manually control platform AEC, disable SPAM, and then invoke the
vx_set_platform_aec_enabled()
function. This function turns on or turns off the recording preset and playback stream between
SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION / SL_ANDROID_STREAM_VOICE
and
SL_ANDROID_RECORDING_PRESET_VOICE_RECOGNITION / SL_ANDROID_STREAM_MEDIA
, respectively.