diff --git a/ios/TextToSpeech.m b/ios/TextToSpeech.m index 15129ae..55cf19f 100644 --- a/ios/TextToSpeech.m +++ b/ios/TextToSpeech.m @@ -111,7 +111,7 @@ -(instancetype)init if(ducking) { AVAudioSession *session = [AVAudioSession sharedInstance]; - [session setCategory:AVAudioSessionCategoryPlayback + [session setCategory:AVAudioSessionCategorySoloAmbient withOptions:AVAudioSessionCategoryOptionDuckOthers error:nil]; } diff --git a/ios/TextToSpeech/TextToSpeech.m b/ios/TextToSpeech/TextToSpeech.m index 9c42f15..201d104 100644 --- a/ios/TextToSpeech/TextToSpeech.m +++ b/ios/TextToSpeech/TextToSpeech.m @@ -107,7 +107,7 @@ -(instancetype)init if(ducking) { AVAudioSession *session = [AVAudioSession sharedInstance]; - [session setCategory:AVAudioSessionCategoryPlayback + [session setCategory:AVAudioSessionCategorySoloAmbient withOptions:AVAudioSessionCategoryOptionDuckOthers error:nil]; }