• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
TextToSpeech - how to extract and display phonemes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: TextToSpeech - how to extract and display phonemes?
      • From: "Scotty's Lists" <email@hidden>
  • Prev by Date: Debugging Core Data unresolved keypath save error
  • Next by Date: How to make NSTreeController expand some items
  • Previous by thread: Re: Debugging Core Data unresolved keypath save error
  • Next by thread: Re: TextToSpeech - how to extract and display phonemes?
  • Index(es):
    • Date
    • Thread