Android TTS not working in device

后端 未结 3 1760
伪装坚强ぢ
伪装坚强ぢ 2021-01-13 18:57

The TextToSpeech like in

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html

works fine on th

3条回答
  •  遥遥无期
    2021-01-13 19:28

    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)

提交回复
热议问题