My app compiles a bunch of random words and silent periods between them and is successfully sent to the TTS engine. The play button needs to be disabled until speech is done and then immediately enabled.
There is a method isSpeaking that I use to test if speech has finished but needs to be in a loop keeping the main thread busy which I don't want.
How can I implement a listener with this:
this is the android listener:
There is a method isSpeaking that I use to test if speech has finished but needs to be in a loop keeping the main thread busy which I don't want.
How can I implement a listener with this:
B4X:
Dim jo As JavaObject = Starter.TTS1
if jo.RunMethod("isSpeaking",Null) = false then log("done speaking")
this is the android listener:
B4X:
setOnUtteranceProgressListener