discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSpeechSynthesizer is mute :P


From: Gregory Casamento
Subject: Re: NSSpeechSynthesizer is mute :P
Date: Wed, 27 Feb 2013 03:59:05 -0500

NSSpeechSynthesizer is an abstract base class.  The speech synthesizer is working if you have flite installed.   You can test it with the "say" command.   

If you look at allocWithZone: in the NSSpeechSynthesizer class you'll see that it tries to contact the speech synthesis server and get a new synthesizer and return that.

GSSpeechSynthesizer (in the speech server under Tools) dispatches a request to speak to the server and returns YES or NO depending on whether it was successfully processed.

None of this will happen unless you have flite installed.  


On Wed, Feb 27, 2013 at 3:48 AM, Luis Garcia Alanis <luis@garcia.tv> wrote:
I think this is the problem LOL! :(

- (BOOL) startSpeakingString: (NSString *)text
{
  return NO;
}


On Wed, Feb 27, 2013 at 12:37 AM, Luis Garcia Alanis <luis@garcia.tv> wrote:
Hello guys,

I am trying to make NSSpeechSynthesizer speak the contents of a textField but no sound comes out of it. 

This should init the synthesizer with the default voice:
    speechSynth = [[NSSpeechSynthesizer alloc] initWithVoice:nil];

Then I do:
    [speechSynth startSpeakingString:string]; 

but I get no sound. Is this a bug?

Thanks
Luis



_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep




--
Gregory Casamento
Open Logic Corporation, Principal Consultant
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell)
http://www.gnustep.org
http://heronsperch.blogspot.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]