On 15 May 2014, at 08:41, Jens Alfke <[email protected]> wrote: > On May 14, 2014, at 6:24 PM, Gerriet M. Denkmann <[email protected]> wrote: > >> But the only thing in 10.9.2 I found was NSSpeechSynthesizer, which has 24 >> voices (which is nice) but all 24 have VoiceLanguage = VoiceLocaleIdentifier >> = en_US (which seems rather odd). > > The non-English voices are optional downloads — you can get them via the > Dictation/Speech system pref pane. Pull down the System Voice pop-up and > choose Customize…
Thanks. Just did that. Did set System Voice to "Anna" (a German voice). Now, when I select some (German) text and do Control-Click → Speech → Start Speaking it just works. Very good. But this: NSString *voiceIdentifier = @"com.apple.speech.synthesis.voice.anna.premium"; NSString *text = @"Der Osten ist rot."; NSSpeechSynthesizer *syn = [ [ NSSpeechSynthesizer alloc ] initWithVoice: voiceIdentifier ]; // non-nil BOOL ok = [ syn startSpeakingString: text ]; // returns YES, but does NOT speak NSString *pp = [ syn phonemesFromText: text ]; // returns empty string does not work as expected. Same problem with all other voices I just downloaded. Only the default (en-US) voices work as they should. What am I missing? Gerriet. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
