408请求超时Microsoft语音转文本 [英] 408 Request timed out Microsoft Speech to Text
本文介绍了408请求超时Microsoft语音转文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
.wav文件的长度只有4秒.即使多次重试并在云上运行它,我仍然不断出现以下错误
My .wav file length is just 4 seconds. Even after multiple retries and running it on cloud i am constantly getting following error
* upload completely sent off: 12 out of 12 bytes
< HTTP/1.1 408 Request timed out (> 14000 ms)
< Transfer-Encoding: chunked
< Content-Type: text/plain
< Server: Microsoft-IIS/8.5
< X-MSEdge-Ref:
有人遇到这个问题吗? 这是我的要求
Has anybody faced this issue? This is my request
`curl -v "https://speech.platform.bing.com/recognize?
scenarios=catsearch&appid=D4D52672-91D7-4C74-8AD8-42B1D98141A5&locale=en-
US&device.os=wp7&version=3.0&format=json&requestid=1d4b6030-9099-12e0-91e4-
0800200c9a67&instanceid=1d4b6030-9099-12e0-91e5-0800200c9a68" -H
"Authorization: Bearer $1" -H "Content-Type: audio/wav; samplerate=8000" --
data-binary $2`
推荐答案
我已经开始工作了.有几个问题.一种是与语言环境有关的,我将其更改为en-IN.然后场景= ulm.这似乎已经解决了问题.我能够很清晰地检测到语音.
I got this working. There were couple of issues. One was with the locale, which i changed to en-IN. and then scenarios=ulm. This seems to have done the trick. I was able to detect speech very clearly.
这篇关于408请求超时Microsoft语音转文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文