小智 30
Flite语音合成引擎可以在iPhone上运行,参见http://artofsystems.blogspot.com/2009/02/speech-synthesis-on-iphone-with-flite.html
Meh*_*ari 17
我不认为iPhone SDK在内部提供任何TTS设施.您应该使用第三方TTS引擎或自己编写一个.
这是另一个发言权:
https://bitbucket.org/sfoster/iphone-tts/
您需要下载并安装为API然后您可以像这样使用它:
[fliteEngine speakText:@"Hi there"]; // Make it talk
[fliteEngine setPitch:90.0 variance:50.0 speed:0.9]; // Change the voice properties
[fliteEngine setVoice:@"cmu_us_awb"]; // Switch to a different voice
[fliteEngine stopTalking]; // stop talking
Run Code Online (Sandbox Code Playgroud)
将其作为API正确安装后非常容易使用.
| 归档时间: |
|
| 查看次数: |
51645 次 |
| 最近记录: |