I need to run some code but only after the text-to-speech stops talking.
I am currently delaying a few seconds but that is not really dynamic, is there any solution for this problem? Can I get notified when the voice stops talking?
I need to run some code but only after the text-to-speech stops talking. I
Share
It sounds like you need to implement the TextToSpeech.OnUtteranceCompletedListener interface and set your code to run during the onUtteranceCompleted() implementation.
There is an example of this in the Android Developer resources:
http://developer.android.com/resources/articles/tts.html