How to pause android.speech.tts.TextToSpeech?

前端 未结 10 981
不知归路
不知归路 2020-12-01 03:47

I\'m playing text with android TTS - android.speech.tts.TextToSpeech

I use: TextToSpeech.speak to speak and .stop to stop. Is

10条回答
  •  失恋的感觉
    2020-12-01 04:39

    I haven't yet tried this, but I need to do the same thing. My thinking is to first split your speech text into an array of words.

    Then create a recursive function that plays the next word after the current word is finished, while keeping a counter of the current word.

提交回复
热议问题