error in calling speech_synthesizer.speak_ssml_async(ssml).get()

Ken L 5 Reputation points
2023-04-29T22:07:00.8433333+00:00

when running speech_synthesis_result = speech_synthesizer.speak_ssml_async(ssml).get()

sometime it works, sometimes it shows:

""

Speech synthesis canceled: CancellationReason.Error

Error details: Connection was closed by the remote host. Error code: 1013. Error details: Status(StatusCode="ResourceExhausted", Detail="no tokens available for passthrough") USP state: TurnStarted. Received audio size: 0 bytes.

Did you set the speech resource key and region values?

""

what is the problem and how to fix it? The key and region values are all correct.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,402 questions
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
358 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,393 questions
{count} vote