In my iOS app most users can hear the AVSpeechSynthesisVoice
correctly, but some report that it simply does not work. I haven't been able to reproduce the issue locally, but here is how I use the API:
let sentence = "the sentence to be told"
let synthesizer = AVSpeechSynthesizer()
let utterance = AVSpeechUtterance(string: sentence)
utterance.voice = AVSpeechSynthesisVoice(
language: "en-GB"
)
utterance.rate = AVSpeechUtteranceDefaultSpeechRate * 1.05
synthesizer.speak(utterance)
This works perfectly fine on iOS 13 (tested most minors), all iOS 14 versions, all the devices I could find... but I keep getting reports of people not getting any audio feedback.
Do you have any pointers on where to look, or at least reproduce the issue?