Contents

voicePrompt

A mode that indicates that your app plays audio using text-to-speech.

Declaration

static let voicePrompt: AVAudioSession.Mode

Discussion

Setting this mode allows for different routing behaviors when your app connects to certain audio devices, such as CarPlay. An example of an app that uses this mode is a turn-by-turn navigation app that plays short prompts to the user.

Typically, apps of the same type also configure their sessions to use the duckOthers and interruptSpokenAudioAndMixWithOthers options.

See Also

Getting Standard Session Modes