• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to speak Chinese on 10.9.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to speak Chinese on 10.9.2


  • Subject: Re: How to speak Chinese on 10.9.2
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 15 May 2014 19:34:29 +0700

On 15 May 2014, at 15:53, Gary L. Wade <email@hidden> wrote:

> German Anna, Chinese Mei-Jia, and Korean Yuna all speak my English text
> (Shakespeare, actually, in my test case) with accents from each language.
> I also verified Mei-Jia speaks Chinese from a Chinese play in my app, too.
> Do you get any calls in your delegate methods (you have set the delegate
> on your speech synthesizer instance, right)?
No, no delegate yet.

> One difference I’ve done is
> to initWithVoice: with nil and later call setVoice:.  Also, I haven’t
> tried this sequence myself, but I noticed in your sample code you’re
> calling phonemesFromText: right after startSpeakingString:.  Maybe
> phonemesFromText: is short-circuiting the speaking?
An interesting point. But when I replace Anna with Bruce (one of the preinstalled voices), he speaks and I also get the phonemes. (still not using any delegate).

Must be something else.

Just added a delegate with speechSynthesizer:didEncounterErrorAtIndex:ofString:message: and speechSynthesizer:willSpeakWord:ofString:

but neither of these gets called with Anna.
With Bruce the latter method does get called.

Still puzzled.


> It’s been a while since I’ve worked on my app, but I remember some calls will stop any
> current speaking.
> --
> Gary L. Wade
> http://www.garywade.com/
>
> On 5/14/2014, 11:15 PM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
>
>>
>> On 15 May 2014, at 08:41, Jens Alfke <email@hidden> wrote:
>>
>>> On May 14, 2014, at 6:24 PM, Gerriet M. Denkmann <email@hidden>
>>> 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@hidden)

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:

This email sent to email@hidden


References: 
 >How to speak Chinese on 10.9.2 (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to speak Chinese on 10.9.2 (From: Jens Alfke <email@hidden>)
 >Re: How to speak Chinese on 10.9.2 (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to speak Chinese on 10.9.2 (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Re: Share and store RSA - public key in java server and vice versa
  • Next by Date: Re: Obtain an NSDate object from any casually entered user string
  • Previous by thread: Re: How to speak Chinese on 10.9.2
  • Next by thread: Re: How to speak Chinese on 10.9.2
  • Index(es):
    • Date
    • Thread