Closed germanattanasio closed 8 years ago
Hi @germanattanasio, I agree, I already have a working java client for the STT service, I think I pointed you to it some time ago. We can reuse that and add the token authentication part.
Why don't you move that code to your github account and I will take a look at it
@daniel-bolanos can you help me with this: https://gist.github.com/germanattanasio/275c6abab90b042f4925 I'm trying to write an example with websockets.
You will need to clone this repo and create a file with that content
I have trouble connecting to Watson STT service using Websockets. I tried the same example given here for websockets. Do I need SSL or any certificate to be installed before connecting?
I am having the same problem. Each time I try connecting to the service, my connection is closed. I am pretty sure I am using the correct API endpoints to get a token and then connect to the WebSocket server. Can there be an SSL issue?
Hello @birkanu and @rathnaum , what is the error message that you get? Can you please try the Python or Ruby WebSocket clients while we solve this issue?
https://github.com/watson-developer-cloud/speech-to-text-websockets-python https://github.com/watson-developer-cloud/speech-to-text-websockets-ruby
thank you
Here is what's printed out on the console:
Transcript using WebSockets
Closed connection.
CONNECTED: false
HERE: false
java.nio.channels.NotYetConnectedException
at org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:481)
at org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:458)
at org.java_websocket.client.WebSocketClient.send(WebSocketClient.java:176)
at samples.IBMSpeechRecognitionSample2.transcriptUsingWebSockets(IBMSpeechRecognitionSample2.java:188)
at samples.IBMSpeechRecognitionSample2.main(IBMSpeechRecognitionSample2.java:86)
I got the exact same error message too. Cheers.
@daniel-bolanos and @germanattanasio, I am not sure if this will help you, but I tried opening a WebSocket connection using Tyrus which is a reference implementation of websockets in Java. This time I got a Handshake Error
, caused by the following reason: Response code was not 101: 400
. There must be something wrong with the SSL Configuration.
@daniel-bolanos and @germanattanasio, any updates on this?
I'm working in other things now, will probably have some time to look at this on Wednesday.
If you have some time please look at the documentation and the ruby and python samples in this organization. You can learn how to use the websocket api and fix the sample by the time I start working on this again.
We decided to use https://github.com/TakahikoKawasaki/nv-websocket-client. It's only 60kb and works in Android.
Is there any C# .Net SDK for speech to text service?
Hello @rathnaum , there is not yet, but all you need is a websockets library for .NET. Please take a look at this post: https://developer.ibm.com/answers/questions/211086/calling-the-speech-to-text-service-from-a-c-net-ap.html
HI @daniel-bolanos I was thinking we can provide support for WebSockets in the wrapper by adding an existing library and handling the authorization using the
authorization
service. What do you think?We should: