Android TTS not working in device

本秂侑毒 提交于 2019-12-01 08:07:09

What language are you using? If your device doesn't have the language installed, it, obviously, can't play it. If it's anything but US, try that. If so then please post your code.

On my Captivate, I had to manually install (prompted by Google Navigation) the TTS data files to enable speech directions. This may have been because the rom didn't include them. I can't recall if the stock rom had the speech files or not. See this link for how to detect the presence of the right files:

http://developer.android.com/resources/articles/tts.html Basically

Intent checkIntent = new Intent();
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkIntent, MY_DATA_CHECK_CODE);

and check the result (should be CHECK_VOICE_DATA_PASS)

user3243443

I am facing the same problem with my samsung GT-S7392, here's the solution if text to speech is working on emulator but not on your phone. Just go to the settings, and set the language setting to US or UK, then run your app. It will work fine.

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