Posts

Post not yet marked as solved
0 Replies
502 Views
I need to use the AVSpeechSynthesizer 3D Text to Speech (for non VoiceOver users) in conjunction with the Voice Over speaker.The AVAudioSession object is configured the following way.- Category: playback- Mode: default- Options: duckOthersI tried performing the setActive(_:) call both with and without the notifyOthersOnDeactivation option.For non-VoiceOver users, when the app is in foreground or background:- I use Speech SynthesizerFor VoiceOver users:- when the app is in foreground: use VoiceOver (updating accessibilityLabel attribute of our info label)- when the app is in background: use Speech Synthesizer - as updating the accessibilityLabel does not trigger a read from the VoiceOver engineThe sound is heard correctly for all use cases except one particular case, when receiving a phone call when the app is in background and Voice Over is enabled, for some reason, the Speech Synthesizer spoken messages cannot be heard anymore in background (despite the AVSpeechSynthesizer speak method being called) (even when going foreground then reentering background) ?The unusual warnings I get are the following:- "[AXTTSCommon] Failure starting audio queue tni!"- "[AXTTSCommon] _BeginSpeaking: couldn't begin playback"
Posted
by mimar.
Last updated
.