Posts

Post not yet marked as solved
0 Replies
83 Views
I've used AVSpeechSynthesisVoice.speechVoices() to acquire the list of voices available on a device. I've then extracted the voices available in my target language by collecting only those whose language matches AVSpeechSynthesisVoice.currentLanguageCode(). My code showed Fred, Samantha, Victoria, and Alex. All voices worked right in my app's voice example except Alex, which was replaced by Samantha. At this point on the device, Settings -> Accessibility -> Spoken Content -> Voices -> English showed Fred, Samantha, and Victoria as available. I have since downloaded Alex. Everything works the same except the Alex voice is now used successfully. So... Why was Alex being reported as available when it was not, and how can I detect that in my code so I don't indicate to a user that a voice is available when it is not? Device is iPhone 12 running iOS 15.4.1; development system is MacBook Pro running MacOS 12.3.1 and Xcode 13.3.1.
Posted
by mlw.
Last updated
.