FROM : j o a r
DATE : Sat Nov 02 16:49:05 2002
On Saturday, Nov 2, 2002, at 16:11 Europe/Stockholm, <email_removed>
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sat Nov 02 16:49:05 2002
On Saturday, Nov 2, 2002, at 16:11 Europe/Stockholm, <email_removed>
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| ssudre2 | Nov 2, 15:11 | |
| j o a r | Nov 2, 15:41 | |
| David Remahl | Nov 2, 15:49 | |
| ssudre2 | Nov 2, 16:11 | |
| j o a r | Nov 2, 16:49 | |
| ssudre2 | Nov 2, 17:15 |






Cocoa mail archive

