android-sdk icon indicating copy to clipboard operation
android-sdk copied to clipboard

[text-to-speech] Provide callback functionality to know when the StreamPlayer ends

Open brian-chu-twc opened this issue 8 years ago • 2 comments

There is no way to know if the speech has finished speaking.

AudioTrack has setPlaybackPositionUpdateListener but it is not expose to me to listen to the state of the speech (start, end, etc).

Can we have a API or the AudioTrack expose to app level?

brian-chu-twc avatar Aug 23 '17 23:08 brian-chu-twc

That definitely sounds like it could be of use, however it's not something we could get started working on right away. If you have any ideas on implementation or want to make a pull request, we would be happy to take a look.

lpatino10 avatar Aug 24 '17 17:08 lpatino10

Thanks a lot for filing this issue! Would you like to write a patch for this? We'd be more than happy to walk you through the steps involved.

germanattanasio avatar Feb 08 '18 17:02 germanattanasio