Closed mohd7469 closed 6 years ago
Hi @awais786327, I think you are not sending the right token. We have a sample app that shows how to use this library once you get a valid token and it's working. See https://watson-speech.mybluemix.net/microphone-streaming.html
The code for that example is in the /examples
folder. If you can't get a valid token using the /authorization
service, you won't be able to call the services :(
@germanattanasio actually i got the token by curl command and then use directly in browser but never works!
Can you please provide a set of reproducible steps?
@germanattanasio yeah sure, could there not be an easiest solution to get the token and SSML audio directly in AngularJS $http client side service like this ?
@awais786327 I just tested this example https://github.com/watson-developer-cloud/speech-javascript-sdk/blob/master/examples/static/url-promise.html and was able to recognize the audio file.
What you are doing should work. Since this was opened in Feb 19 and we had a few releases since then. Can you update the library and try again?
@germanattanasio thanks for your reply i did already with this AWS Polly Speech Synthesis
I'm closing this since I couldn't reproduce it.
i am calling this API from client side and i have to call this from client side