TextToSpeech - how to extract and display phonemes?
TextToSpeech - how to extract and display phonemes?
- Subject: TextToSpeech - how to extract and display phonemes?
- From: Yevgeniy Goldberg <email@hidden>
- Date: Fri, 16 Mar 2007 15:17:32 -0500
Greetings!
I need to be to break American English words down to individual
phonemes and display those phonemes to the user in a text view.
I'm trying to use TextToPhoneme method, but struggling with
extracting the correct string value from this method.
Could anyone tell me how to do this correctly?
char * theTextToSpeak = (char *)[[fSpokenTextView string] lossyCString];
OSErr theErr = TextToPhonemes(fCurSpeechChannel, (Ptr)theTextToSpeak,
(long)strlen(theTextToSpeak), thePhonemeHandle, (long *)
&theNumOfPhonBytes);
NSData * thePhonemeText = [NSData
dataWithBytesNoCopy:*thePhonemeHandle length:theNumOfPhonBytes
freeWhenDone:false];
The 3 lines above have me end up with an instance of NSData that
contains (I think) the phoneme data.
I'm struggling with extracting that data.
-Eugene
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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