how can use Persian tts example in android?

匿名 (未验证) 提交于 2019-12-03 09:52:54

问题:

how can use Persian tts example in android? i want an android TTS for Persian languages this is my example but in android we don't have all languages what can i do?

myTTS.setLanguage(Locale.US); 

回答1:

Recently persian (farsi) added to espeak project. As I know, espeak is open source and work also in android.



回答2:

To fine whether a specific language is supported, use isLanguageAvailable(), which returns the level of support for the given language. Example:

myTTS.isLanguageAvailable(Locale.PERSIAN)) 

If supported, it will return as follows:

TextToSpeech.LANG_COUNTRY_AVAILABLE  


回答3:

Here is the persian version of Espeak for android. You can install it through adb. If you don't have access to adb through shell. Here is a guide for windows: http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/

persian version of http://irtbc.ir/d/3829878

To install through adb type adb install espak.apk



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