Re: Speech Recognition / Synthesis Cocoa APIs ??? Where ?????
Re: Speech Recognition / Synthesis Cocoa APIs ??? Where ?????
- Subject: Re: Speech Recognition / Synthesis Cocoa APIs ??? Where ?????
- From: email@hidden
- Date: Sat, 2 Nov 2002 17:15:09 +0100
On samedi, novembre 2, 2002, at 04:49 PM, j o a r wrote:
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?
Hum, it's as if to draw a red pixel, I was creating a NSOpenGLView with
a z-buffer of 32 bits and drawing a red plane viewed from front into an
offscreen buffer to then create a bitmap representation and draw it
with CoreGraphics.
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"];
Looks like this is what they were speaking of.
_______________________________________________
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.