[英]Azure Text to speech Throttled due to too many requests websocket error code: 1007 with only 3 concurrent requests
I'm using Azure text to speech service.我正在使用 Azure 文本到语音服务。 I have a lot of small ssml files for which I generate the audio, then combine them using FFMPEG.
我有很多小的 ssml 文件,我为其生成音频,然后使用 FFMPEG 将它们组合起来。 I wrote a script to generate all the small audio files.
我写了一个脚本来生成所有的小音频文件。 If the script makes 3 concurrent requests, then after about a total of 20 requests, some of the other requests will complete, but the file will be empty.
如果脚本发出 3 个并发请求,则在总共大约 20 个请求之后,其他一些请求将完成,但文件将为空。 Checking the result object, I see
Throttled due to too many requests websocket error code: 1007
.检查结果 object,我看到
Throttled due to too many requests websocket error code: 1007
。 If I remove any concurrency from the script and add a 1-second wait between the end of the last file and the next request, it works.如果我从脚本中删除任何并发并在最后一个文件的结尾和下一个请求之间添加 1 秒的等待,它就可以工作。
I've checked the quotas and limit on the Text to speech API and it mentions a maximum of 20 concurrent requests (which is far from the 3 I send).我检查了文本到语音 API 的配额和限制,它提到最多 20 个并发请求(这与我发送的 3 个相去甚远)。
Any idea about what I might be doing wrong (I'm using the javascript SDK).关于我可能做错的任何想法(我正在使用 javascript SDK)。
Turns out on teh Rest API, in the free plan there is a 20 request per minute limit... https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-services-quotas-and-limits#text-to-speech-quotas-and-limits-per-speech-resource Turns out on teh Rest API, in the free plan there is a 20 request per minute limit... https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-services-配额和限制#text-to-speech-quotas-and-limits-per-speech-resource
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.