Type Property


A mode used for continuous spoken audio when you want to pause your audio when another app plays a short amount of spoken audio.


static let spokenAudio: AVAudioSession.Mode


In iOS 8 and earlier, and in iOS 9 if you don't set this mode, occasional spoken audio from navigation and exercise apps mixes with, or ducks, your audio, interfering with intelligibility of both apps. This mode avoids the problem by using the interruptSpokenAudioAndMixWithOthers audio session category option for the interrupting app. After the interrupting app’s audio ends, your interrupted spoken audio can resume.