Static AVAudioSessionModeVoicePrompt

Source
pub unsafe static AVAudioSessionModeVoicePrompt: Option<&'static AVAudioSessionMode>
Available on crate feature AVAudioSessionTypes only.
Expand description

Appropriate for applications which play audio using text to speech. Setting this mode allows for different routing behaviors when connected to certain audio devices such as CarPlay. An example of an app that would use this mode is a turn by turn navigation app that plays short prompts to the user. Typically, these same types of applications would also configure their session to use AVAudioSessionCategoryOptionDuckOthers and AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers

See also Apple’s documentation