watson-developer-cloud / speech-android-sdk

DEPRECATED - Please use https://github.com/watson-developer-cloud/android-sdk
Apache License 2.0
67 stars 53 forks source link

stop currently playing audio of Text-to-Speech #23

Closed mitulgolakiya closed 5 years ago

mitulgolakiya commented 8 years ago

Hi,

We are using IBM Watson in our production build. We have a Siri kind of functionality for our app.

We were looking for if there is any way by which we can stop the audio that is currently played by Text to Speech service ?

mihui commented 8 years ago

There is a private method called "private void stopTtsPlayer()" in TTSUtility class, it can stop it.

I am working on refactoring, so I merged it into TextToSpeech class and opened this method public called "public void stopAudio()"

See this change: https://github.com/watson-developer-cloud/speech-android-sdk/commit/1f9dfb162affb0e2800b013a30095fed577d0f61

mitulgolakiya commented 8 years ago

Thanks, @mihui.

so how soon this will be released ?

mihui commented 8 years ago

@mitulgolakiya as long as the new PR is merged, this could be resolved.