This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 4th, 2013  |  syntax: None  |  size: 0.51 KB  |  views: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         CFStringRef aString = CFStringCreateWithCString (
  2.                                                                                    NULL,
  3.                                                                                    SpManStr,
  4.                                                                                    kCFStringEncodingASCII
  5.                                                                                    );
  6. //      CFStringRef aString = CFSTR(prosoStr);
  7.         SpeechChannel speechchannel;
  8.         NewSpeechChannel( NULL, &speechchannel );
  9.        
  10.        
  11.         SetSpeechProperty(speechchannel,kSpeechInputModeProperty,kSpeechModePhoneme);
  12.        
  13.        
  14.         SpeakCFString(speechchannel, aString, NULL);
  15.        
  16.         //printf("%d\n", NewSpeechChannel( NULL, &speechchannel ) );
  17.         //printf("%d\n", SpeechManagerVersion() );
clone this paste RAW Paste Data