Android Question UtteranceProgressListener() for TTS

epiCode

Active Member
Licensed User
I am looking for a way to catch TTS onDone Event

I found an old post with an example by @Erel which is no longer functional since OnUtteranceCompletedListener interface is deprecated after API 21.
The interface is changed to a class now called UtteranceProgressListener

I could not find any post/example which could help on how to implement UtteranceProgressListener() in B4A.

Any inputs / examples / libs would be appreciated. Thanks!
 

epiCode

Active Member
Licensed User
I got it working by modifying inline java code example posted by Johan. Thanks @Johan Schoeman

Sharing the code and example for others as is.
 

Attachments

  • TTS_sample.zip
    9.2 KB · Views: 237
Upvote 1
Solution
Top