2 years ago
#45468
zpzhuang
Microsoft speech-to-text restful api return “Empty reply from server”
Currently I am using speech-to-text restful api ,the ogg container format is written by myself ,this ogg file can be played directly ,but i don't know why the microsoft engine return “Empty reply from server” , the retCode is 100 .
curl --location --request POST 'https://japaneast.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US' --header 'Ocp-Apim-Subscription-Key: xxx' --header 'Content-Type: audio/ogg; codecs=opus' --data-binary @'output.ogg'
you can download the file from the following link : https://drive.google.com/file/d/18bn2_lxe6VO0AP7t0Bcbp4z3uuKAriob/view?usp=sharing https://drive.google.com/file/d/1LMZh1_3PAEm8vNYkHcB6jxUge1M1wXlz/view?usp=sharing
I can use MediaInfo tools to view my ogg file information enter image description here
speech-to-text
0 Answers
Your Answer