在iOS上的文字转语音。

| 我想在iOS上的语音中添加文字,但注意到Cocoa-Touch似乎缺少NSSpeechSynthesizer。 您有没有推荐的第三方库,无论是商业库还是FOSS库?苹果会拒绝包含第三方库的应用程序吗?     
已邀请:
我听说OpenEars很好,但是我对此并不了解太多。至于苹果公司是否接受带有第三方库的应用程序,这完全取决于第三方库是否使用私有框架。我确定OpenEars网站上有可用信息。     
如何以编程方式使用iOS语音合成器? (文字转语音) 从iOS 7开始,Apple提供了以下API ... https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVSpeechSynthesizer_Ref/Reference/Reference.html
#import <AVFoundation/AVFoundation.h>
…
AVSpeechUtterance *utterance = [AVSpeechUtterance 
                            speechUtteranceWithString:@\"Hello world\"];
AVSpeechSynthesizer *synth = [[AVSpeechSynthesizer alloc] init];
[synth speakUtterance:utterance];
    
看看CMU的Flite TTS引擎。 例如,有一些Flite的iOS端口 https://github.com/KingOfBrian/VocalKit https://github.com/jonbarlo/iPhoneTTSSampleApp https://bitbucket.org/sfoster/iphone-tts/(不起作用) http://wiki.monotouch.net/HowTo/Interop/Interopping_with_Open_Source_Text-to-Speech_(TTS)_C_libraries__for_iPhone。     
如果您不打算在App Store上发布您的应用程序,建议您使用VoiceService API。它是一个专用API。但是它易于使用,并可以输出高质量的声音。     

要回复问题请先登录注册