Android TTS doesn't speak

后端 未结 4 643
闹比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 22:10

    Well another cause of this problem could be your TTS engine, Sometimes in SAMSUNG phones the default TTS engine is SAMSUNG Engine which doesn't work on some languages like persian (I don't mean for persian text, Even if you're trying to read an english text, it still doesn't work, it's strange but It happens). In order to solve it all you have to do is to set the TTS engine on your code (or select Setting -> Language input -> Text to speech -> Google Text-to-speech manually)

提交回复
热议问题