Closed zkanda closed 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
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.
conn
so we can manipulate those ourselves, but that can get quite verbose. We would need to find a way to synchronize it with other goroutines, e.g. we need to be able to say stop sending audio before sending the stop
command. hmmm I think this might get ugly on the client side.RecognizeListener
? Then attach and expose those methods of start/stop? That way, the library can handle the complexity of synchronizing those goroutines.If you have some other ideas, I would be glad to know. I can try doing the implementation.
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
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.
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 functionMaybe I just misunderstood but if there's a way to do it currently, I'd be glad to know.
Cheers