最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Azure Text to speech Throttled due to too many requests websocket error code: 1007 with only 3 concurrent requests

programmeradmin2浏览0评论

I'm using Azure text to speech service. I have a lot of small ssml files for which I generate the audio, then bine them using 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 plete, but the file will be empty. Checking the result object, I see 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.

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).

Any idea about what I might be doing wrong (I'm using the javascript SDK).

I'm using Azure text to speech service. I have a lot of small ssml files for which I generate the audio, then bine them using 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 plete, but the file will be empty. Checking the result object, I see 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.

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).

Any idea about what I might be doing wrong (I'm using the javascript SDK).

Share Improve this question asked Mar 9, 2021 at 8:12 otuswebotusweb 1,6781 gold badge21 silver badges33 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

Turns out on teh Rest API, in the free plan there is a 20 request per minute limit... https://learn.microsoft./en-us/azure/cognitive-services/speech-service/speech-services-quotas-and-limits#text-to-speech-quotas-and-limits-per-speech-resource

i am facing a similar issue - i am sending requests via python sdk to azure tts running on free demo subscription on free (F0) Pricing tier and i am being throttled even if i'm way below 20 requests.

A workaround i found is to set up second tts service on standard tier rather than free pricing tier.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论