SpeakCFString问题

时间:2013-12-11 23:35:29

标签: text-to-speech macos-carbon speech-synthesis

我正在编译一个C文件,该文件在OS X 10.9中使用碳API进行语音合成。

以下代码没有任何说法。怎么了?

#include<stdio.h>
#include<ApplicationServices/ApplicationServices.h>
#include<CoreFoundation/CoreFoundation.h>
#include<CoreAudio/CoreAudio.h>
#include<stdbool.h>


int main(int argc, const char * argv[])
{

    SpeechChannel speechchannel;
    NewSpeechChannel( NULL, &speechchannel );

    SpeakCFString(speechchannel, CFSTR("reading reading reading..."), NULL);

    // insert code here...
    printf("Hello, World!\n");

}

0 个答案:

没有答案