android-sdk
android-sdk copied to clipboard
[text-to-speech] Provide callback functionality to know when the StreamPlayer ends
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?
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.
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.