Reputation: 1069
I am trying to make a speech2text request to Bing Speech API but I get
HTTP/1.1 408 Request timed out (> 14000 ms)
error
my curl command is as following :
curl -v -X POST "https://speech.platform.bing.com/recognize?scenarios=smd&appid=D4D52672-91D7-4C74-8AD8-42B1D98141A5&locale=en-US&device.os=your_device_os&version=3.0&format=json&instanceid=my-instanceid&requestid=my-request-id" -H 'Authorization: Bearer my-token' -H 'Content-type: audio/wav; codec="audio/pcm"; samplerate=16000' --data-binary @whatstheweatherlike.wav
file I am trying to upload is
any ideas what might went wrong?
Upvotes: 0
Views: 769
Reputation: 1069
It seems it was something cUrl related as I implemented same logic in nodejs and it works fine.
Upvotes: 0
Reputation: 2973
You have a link to the GitHub page for the WAV file, not the WAV file itself. Use https://raw.githubusercontent.com/Microsoft/BotBuilder-Samples/master/Node/intelligence-SpeechToText/audio/whatstheweatherlike.wav instead.
Upvotes: 0