Share via

ConnectionError: HTTPSConnectionPool(host='none.customvoice.api.speech.microsoft.com', port=443): Max retries exceeded with url: /api/texttospeech/3.1-preview1/batchsynthesis/talkingavatar (Caused by NameResolutionError("<urllib3.connection.HTTPSConnectio

Nishigandha Lad 60 Reputation points
2023-11-27T06:47:20.4733333+00:00

Our organization is using Azure text-to-speech services and running the algorithm in google colab local system. The following error appears when the API is called.

The content of the error is as follows:

gaierror: [Errno -2] Name or service not known. The above exception was the direct cause of the following exception: NameResolutionError Traceback (most recent call last) NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x7c42b2a75750>: Failed to resolve 'none.customvoice.api.speech.microsoft.com' ([Errno -2] Name or service not known)

The error indicates that google colab cannot connect to the azure server and port 443. I have also tried to execute the code in VSCode and Pycharm but similar error occurs.

Azure AI Bot Service
Azure AI Bot Service

An Azure service that provides an integrated environment for bot development.

Azure AI Speech
Azure AI Speech

An Azure service that integrates speech processing into apps and services.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


Your answer

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