How can i save Text to Speech file as .wav/.mp3 format in Arabic language in External Storage?

泄露秘密 提交于 2019-12-05 05:05:15

From earlier comments:

This may sound a little obvious, but have you tried explicitly setting the language to an Arabic Locale using setLanguage(...)? You can potentially also first check if the Locale is available by checking the return value of isLanguageAvailable(...)

And:

Get them from Wikipedia: ISO 3166-1 and ISO 639-1. Do note that the Locale docs say: "The language codes are two-letter lowercase ISO language codes (such as "en") as defined by ISO 639-1. The country codes are two-letter uppercase ISO country codes (such as "US") as defined by ISO 3166-1."

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