Documentation

​
​

Development

User Acquisition

Monetization

Industry

Vivox Core SDK

Vivox Core SDK

Vivox
​
​
Vivox Core SDK
  • Overview
  • Before you begin
  • Get started
  • Release notes
  • Developer Guide
    • Client SDK basics
    • Channels
    • Presence management
    • Messaging
    • Manage audio
    • Couch co-op
    • Android app development
      • Bluetooth profile management
      • Android SDK permission requirements
      • Android library requirements
      • Initialize Vivox Android services
      • Android speakerphone audio: Mono or stereo
      • Update the ProGuard rule file
      • Smart Platform Audio Management
      • Acoustic echo cancellation
      • Disable the Vivox SDK internal AEC
      • Hardware echo cancellation
      • Absolute paths for native libraries
      • Reduce Opus CPU load on low-powered Android devices
    • iOS app development
    • macOS app development
    • Windows app development
    • Real-time recording
    • Speech-to-text audio transcription
    • Text-to-speech
    • Troubleshooting
  • Reference
  • Privacy overview
  1. Vivox Core SDK documentation
  2. Android app development

Acoustic echo cancellation

Information on AEC on Android devices.
Read time 1 minute
Last updated 8 months 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.
Note
If there is a headset in use on an Android device, then the capture device will likely not pick up the output from the headset’s headphones, and no special configuration is required to avoid echo.
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.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page