How to pause android.speech.tts.TextToSpeech?

前端 未结 10 990
不知归路
不知归路 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:33

    divide the messages into parts and listen for last utterance by using onutteranceprogress listener

     tts.playSilence(1250, TextToSpeech.QUEUE_ADD, null);
    

提交回复
热议问题