AVAudioSessionModeVoiceChat

To enable platform acoustic echo cancellation (AEC), the iOS device must be in AVAudioSessionModeVoiceChat. For more information, see the Apple developer documentation.

AVAudioSessionModeVoiceChat changes EQ to optimize for voice. Because of this change, any non-voice audio that the iOS app plays might seem quieter. The Voice-Processing I/O unit also mixes the audio to ensure that the voice is the loudest part of the overall audio mix.

Note: Although it is possible to change the AVAudioSession mode to default after activating the Voice-Processing I/O unit, Apple recommends using AVAudioSessionModeVoiceChat. Using the default mode when the Voice-Processing I/O unit is active might cause unpredictable behavior, and various device types (for example, iPad and iPhone) might behave in different ways.