AVSpeechSynthesisVoice only one voice exists

Something has changed in the text-to-speach API. Cannot get any [AVSpeechSynthesisVoice speechVoices].

The "old way" [AVSpeechSynthesisVoice voiceWithLanguage:voiceLangCode] does not work anymore.

There is a new method :

+ (nullable AVSpeechSynthesisVoice *)voiceWithIdentifier:(NSString *)identifier NS_AVAILABLE_IOS(9_0);

however its only works with en-US Alex's voice:

AVF_EXPORT NSString *const AVSpeechSynthesisVoiceIdentifierAlex NS_AVAILABLE_IOS(9_0);

Any idea how i could use different language voices like before?

I believe this is a limitation of the new API but is something that could change before the public launch of iOS 9.


- Tom

Ok, Its working again in 9.0 beta 4

Glad to hear!


- Tom

i'm trying to get this to work in swift 2, xcode 7b4 but it still seems broken. can anyone help?

AVSpeechSynthesisVoice only one voice exists
 
 
Q