Re: Speech Recognition / Synthesis Cocoa APIs ??? Where ?????
Re: Speech Recognition / Synthesis Cocoa APIs ??? Where ?????
- Subject: Re: Speech Recognition / Synthesis Cocoa APIs ??? Where ?????
- From: j o a r <email@hidden>
- Date: Sat, 2 Nov 2002 16:49:05 +0100
On Saturday, Nov 2, 2002, at 16:11 Europe/Stockholm, email@hidden
wrote:
Sure but it's not very elegant and useful when you just want to speak
a NSString.
Why not useful? I'm not saying it's ideal in terms of where this
functionality *should* be exposed in the frameworks, but compared with
wrapping your head around any existing (public) speech framework just
doing this:
NSTextView *textView = [[NSTextView alloc] initWithFrame: NSZeroRect];
[textView setString: @"Hello"];
[textView startSpeaking]
...seems reasonably useful to me. Unless of course there's some other
functionality you're looking for?
The "SpeechObjects.framework" seems pretty promising when you look at
it through class-dump. It'll probably be made public in some future
system release, but if you're impatient and don't mind using private
frameworks (it's bad you know) you could probably link to it and just
call:
[[NSSpeechSynthesis sharedSpeechSynthesisChannel] speakString:
@"Hello"];
j o a r
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.