How to detect Text to speech status (speaking/not speaking) from java code on android?

267 views Asked by At

I'm not using text to speech in my android app, but I need to know when TTS is speaking. How can I do it?

1

There are 1 answers

2
Gabe Sechan On

Set an onUtteranceCompletedListener or onUtteranceProgressListener. Using that you can track the status. Check what the last status was before displaying a toast.