Cocoa touch iOS上的文本到语音转换
我想在iOS上为语音添加文本,但注意到Cocoa Touch中似乎缺少NSSpeechSynthesizer 是否有任何第三方,商业或自由和开放源码软件,图书馆,你会推荐?苹果会拒绝包含第三方库的应用程序吗?我听说这很好,但我真的不太了解它。至于苹果是否接受带有第三方库的应用程序,这完全取决于第三方库是否使用私有框架。我确信这些信息可以在OpenEars网站上找到。看看引擎 例如,Flite有几个iOS端口Cocoa touch iOS上的文本到语音转换,cocoa-touch,ios,text-to-speech,Cocoa Touch,Ios,Text To Speech,我想在iOS上为语音添加文本,但注意到Cocoa Touch中似乎缺少NSSpeechSynthesizer 是否有任何第三方,商业或自由和开放源码软件,图书馆,你会推荐?苹果会拒绝包含第三方库的应用程序吗?我听说这很好,但我真的不太了解它。至于苹果是否接受带有第三方库的应用程序,这完全取决于第三方库是否使用私有框架。我确信这些信息可以在OpenEars网站上找到。看看引擎 例如,Flite有几个iOS端口 (不工作) 如果您没有在应用商店发布应用,我建议使用VoiceService A
- (不工作)
#导入
…
avspeechoutrance*话语=[avspeechoutrance]
speechoutanthestring:@“你好,世界”];
AVSpeechSynthesizer*synth=[[AVSpeechSynthesizer alloc]init];
[synth speakoutrance:outrance];
对于那些还没有学到硬道理的人来说,Flite在质量上绝对是可怕的(最好想想旧窗口),而在任何项目中使用它所需的文件数量使得构建操作的成本高得让人望而却步。(分析示例项目会产生1个警告和33个分析器结果。不好。)它是免费的,但基本上毫无价值。我不认为它毫无价值-这取决于您是否需要高保真语音复制!我的应用程序使用Flite,并通过80年代风格的合成得到增强。
#import <AVFoundation/AVFoundation.h>
…
AVSpeechUtterance *utterance = [AVSpeechUtterance
speechUtteranceWithString:@"Hello world"];
AVSpeechSynthesizer *synth = [[AVSpeechSynthesizer alloc] init];
[synth speakUtterance:utterance];