Adding text to speech functionality to iOS app

喜欢而已 提交于 2019-12-08 05:50:46

问题


I'd like to implement such functionality in my app, and AFAIK, the only choice is to use a third-party library, so I've been looking for possible options. I've found that OpenEars seems to be one of the best free and open-source libraries for that purpose, and it works offline, but it only supports English language and I'd want to offer multilanguage text to speech, at least for English, Portuguese, Spanish and French.

I've read that, for multilanguage support, Google TTS performs well, but it only works online... and I'm not sure if a limit of calls exists, does it? Where could I find detailed info about using Google TTS in iOS?

And finally, I've also read a lot of references to Flite or Festival Lite... but it doesn't seem to support multilanguage either. Does somebody know a free, open-source TTS library for iOS that supports several languages and, preferably, works offline?

Just another question. The app I'm working on may have a commercial version and it is intended to be submitted to the Apple Store. Could the use of any TTS third-party library be a problem?

Thanks a lot


回答1:


iOS 7 has AVSpeechSynthesizer that can do text-to-speech out-of-the-box without the need of any external frameworks.

For more on this, visit this link.




回答2:


There is two API's which supports these languages:

  1. ispeech
  2. acapela

But both are online and paid.

OpenEars is a offline text-to-speech and speech-to-text opensource library. But I don't know whether it supports other languages other than English.

Could the use of any TTS third-party library be a problem? Answer: No, there is no problem with this.

Update (on 27 Aug 2013):
OpenEars now supports Spanish as well as English. (Check the below comment from Halle)



来源:https://stackoverflow.com/questions/14194170/adding-text-to-speech-functionality-to-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!