Speech Sdk SpeakTextAsync returns error 502, 504 or connect ETIMEDOUT 20.189.108.64:443

Tom FONG 1 Reputation point
2021-07-21T08:25:27.183+00:00

My program uses microsoft-cognitiveservices-speech-sdk 1.16.0 and uses SpeechSynthesizer.speakTextAsync for text-to-speech service.

It has been working for several months without any issue, until now it suddenly returns error 502, 504 or connect ETIMEDOUT 20.189.108.64:443.

What should I do?

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

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 51,701 Reputation points
    2021-07-21T15:28:39.51+00:00

    Hello,

    Thanks for reaching out to us. Error 502 and ETIMEOUT seems a issue due to DNS. 504 is reflecting internet connection issue. I will suggest you check your internet and DNS setting first then try below:

    Restart your computer and networking equipment.
    Clear your cache and cookies.
    Change your DNS server.

    Hope this helps.

    Regards,
    Yutong

    0 comments No comments

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.