AVSpeechUtterance を使用して、指定されたテキストを読み上げています。私は以下のコードを使用しており、「iPhone リンガー モード」では問題なく動作しますが、iPhone を「サイレント モード」に変更すると、発話音声がミュートになります。そして「サイレントモード」だと発声音声が聞こえません。「サイレントモード」で発声音声を聞くにはどうすればよいですか。
AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:@"Hello World"];
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"];
[utterance setRate:AVSpeechUtteranceMinimumSpeechRate];
[utterance setVolume:1];
[self.speechSynthesizer speakUtterance:utterance];