watson-developer-cloud / go-sdk

:mouse: go SDK for the IBM Watson services.
Apache License 2.0
70 stars 25 forks source link

Ability to stop/start audio recognition on websocket. #44

Closed zkanda closed 5 years ago

zkanda commented 5 years ago

Hello IBM Team,

Based on the docs, it seems to be intended that we can easily start/stop an audio recognition. However, the current implementation doesn't return the websocket conn or exposes the start and stop function

Maybe I just misunderstood but if there's a way to do it currently, I'd be glad to know.

Cheers

ehdsouza commented 5 years ago

Hi @zkanda,

The current implementation unfortunately doesn't expose those methods

Do you have a design in mind? You could start with a PR or comment here

zkanda commented 5 years ago

Hello @ehdsouza there are many ways to get it done, I'm not sure if there's an ibm way of doing things but here are some of my thoughts.

If you have some other ideas, I would be glad to know. I can try doing the implementation.

ehdsouza commented 5 years ago

Approach 2 sounds a better way to get started.

Also feel free to write in an example in the folder here: https://github.com/watson-developer-cloud/go-sdk/tree/master/examples. In some of our SDKs, we give an example where the input is from a microphone

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.