A mode that indicates that your app is performing two-way voice communication, such as using Voice over Internet Protocol (VoIP).
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Use this mode for Voice over IP (VoIP) apps that use the
AVAudio category. When you set this mode, the session optimizes the device’s tonal equalization for voice and reduces the set of allowable audio routes to only those appropriate for voice chat.
Using this mode has the side effect of enabling the
AVAudio category option.
For apps that use voice or video chat, also use the Voice-Processing I/O audio unit. The Voice-Processing I/O unit provides several features for VoIP apps, including automatic gain correction, adjustment of voice processing, and muting. See Voice-Processing I/O Unit for more information.
If an app uses the Voice-Processing I/O audio unit and hasn’t set its mode to one of the chat modes (voice, video, or game), the session sets the
AVAudio mode implicitly. On the other hand, if the app had previously set its category to
AVAudio and its mode to
AVAudio, instantiating the Voice-Processing I/O audio unit doesn’t cause the mode to change.