Android TTS doesn't speak

后端 未结 4 621
闹比i
闹比i 2021-01-04 21:20

I am trying to implement text to speech technology of android in my Activity but I face a strange error. I can\'t hear any sound, from my code. The speak method works only i

4条回答
  •  再見小時候
    2021-01-04 21:57

    One problem I've had with text-to-speech is that if it is installed to the SD card, then it won't work when the USB is plugged up. So you might try unplugging your test device from the USB and see if that solves the problem.

    Another thing you might try is stepping through the program and seeing if you are altering your text-to-speech object in any way on accident. Set a break point on the talk part of your code and take a look at all of the variables in your talker object.

提交回复
热议问题