Last active
August 19, 2019 22:37
-
-
Save Younes-Charfaoui/6741bb021383870d53e9948abbc531e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| textToSpeech.setOnUtteranceProgressListener(object : UtteranceProgressListener() { | |
| override fun onDone(utteranceId: String?) { | |
| //do whatever you want when TTS finish speaking. | |
| } | |
| override fun onError(utteranceId: String?) { | |
| //do whatever you want if TTS makes an error. | |
| } | |
| override fun onStart(utteranceId: String?) { | |
| //do whatever you want when TTS start speaking. | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment