TTS Azure - Connection was closed by the remote host. Error code: 1011

Daniel Engelson 0 Reputation points
2025-03-04T07:10:12.6233333+00:00

I am using the azure text to speech service with SDK with both python and java.
azure-cognitiveservices-speech package with python
com.microsoft.cognitiveservices.speech:client-sdk with java.

My request has been working for at least a year and suddenly not working anymore.
I have the pay-as-you-go plan on azure. No limits. No more requests than usual.

I get the error:
Error details: Connection was closed by the remote host. Error code: 1011. Error details: Internal server error. USP state: Sending. Received audio size: 0 bytes.

What should I do? Anyone having the same issue?

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,940 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pavankumar Purilla 4,025 Reputation points Microsoft External Staff
    2025-03-04T18:41:43.84+00:00

    Hi Daniel Engelson,
    Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.

    The error code 1011 typically indicates an internal server error on Azure's side.

    • Verify if there are any ongoing issues with Azure services in your region by visiting the Azure Service Health dashboard. This can help determine if the problem is due to a temporary service disruption.
    • Although you mentioned no limits, it's worth double-checking if there are any hidden quotas or limits being hit. Sometimes, increasing the CPU and memory allocation for your container can resolve such issues.
    • Ensure that you are using the latest versions of the Azure SDKs for both Python and Java.
    • Review your configuration settings to ensure they align with the latest recommendations from Azure. Sometimes, changes in the service might require updates to your setup.

    I hope this information helps.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.