Search code examples
c#azuretext-to-speechazure-cognitive-services

Azure speech cognitive (TTS) limit information


I need to use the neural tts service by azure in a c# desktop batch command line to convert several text file messages to wav files.

The messages are generally short but the text files are many.

here the datails about the limits:

(Text-to-Speech Quotas and limits per Speech resource) https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-services-quotas-and-limits#text-to-speech-quotas-and-limits-per-speech-resource

No multithading or async request in this case.

Becouse my app convert in batch the text in wav is not clear what happan when exceeds the 20 requests per minute.

Will be a runtime error ? I need do manage the delay manually in my code ?

Thanks !


Solution

  • When you exceed the request per minute limit you will receive response as 429 to every request. You could handle for this response.

    You could delay and retry the request based on the above response.