Re: speechSynthesizer willSpeakWord trouble
Re: speechSynthesizer willSpeakWord trouble
- Subject: Re: speechSynthesizer willSpeakWord trouble
- From: glenn andreas <email@hidden>
- Date: Fri, 6 Jul 2007 18:16:22 -0500
On Jul 6, 2007, at 5:22 PM, Paul Bruneau wrote:
Hi everyone-
I am just messing around with some speech stuff (expanding on
examples from Hillegass' book) and I just can't make the
willSpeakWord delegate work right. Here is my method:
-(void)speechSynthesizer:(NSSpeechSynthesizer *)sender
willSpeakWord:(NSRange)characterRange
ofString:(NSString *)myString;
{
NSLog(@"Range: %@", NSStringFromRange(characterRange));
NSLog(@"Speaking: %@", [myString substringWithRange:characterRange]);
}
my output goes like this:
2007-07-06 18:07:03.463 SpeakLine[366] Range: {0, 5}
2007-07-06 18:07:03.463 SpeakLine[366] Speaking: (null)
2007-07-06 18:07:03.785 SpeakLine[366] Range: {6, 5}
2007-07-06 18:07:03.785 SpeakLine[366] Speaking: (null)
2007-07-06 18:07:04.236 SpeakLine[366] Range: {12, 6}
[snip]
Any ideas for newbie me? Thank you.
Does your object have an instance variable named "myString"? (whose
name then hides the parameter "myString")?
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build,
mutate, evolve, animate
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden