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 <[email protected]> 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 <[email protected]>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 > [email protected] > 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
_______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
