目前我正在做一个cocos2d project.In我的项目,我必须为相应的word.for添加音频例如,如果有一个叫苹果的单词,那么我必须添加苹果audio.Instead的这个,有没有其他方法,iphone框架自动跟踪该单词并播放它…
谢谢!
发布于 2011-04-15 13:03:48
如果您的字符数小于100,则可以使用
下面是
googles translate.google.com translate_tts服务示例链接。您需要使用UIWebView来加载特定的请求,例如
NSString *yourRequestURL = NSString stringWithFormat:@"http://translate.google.com/translate_tts?tl=%@&q=%@",languageTOConvert,YourWord;
[yourUIWebView loadRequest:[NSURLRequest请求URLWithString:NSURL URLWithString:您的请求URLWithString]];
示例链接为http://sites.google.com/site/readtextextension/home/applications-on-the-web
你也需要把功劳归功于谷歌,比如“由谷歌提供动力”之类的东西。
https://stackoverflow.com/questions/5672502
复制相似问题