watson-developer-cloud / android-sdk

:high_brightness: Android SDK to use the IBM Watson services.
http://watson-developer-cloud.github.io/android-sdk/
Apache License 2.0
145 stars 96 forks source link

[text-to-speech] Provide functionality to stop the StreamPlayer #21

Closed hendrawd closed 7 years ago

hendrawd commented 7 years ago

As asked in http://stackoverflow.com/questions/41256985/how-to-stop-streamplayer-of-ibm-watson-text-to-speech

I want to stop StreamPlayer when quitting an Activity where the StreamPlayer play the audio. How i can achieve that with the current sdk?

sdk used

compile 'com.ibm.watson.developer_cloud:java-sdk:3.5.3'
compile 'com.ibm.watson.developer_cloud:android-sdk:0.2.1'
germanattanasio commented 7 years ago

I think this is particular of Android so I will let @blakesteve answer it

Hsaylor commented 7 years ago

I believe this functionality should have been added with #26. Can you confirm/deny @blakesteve ?

blakesteve commented 7 years ago

Agreed, calling interrupt provides the requested functionality. Thanks Harrison, closing