question

TomFONG-3632 avatar image
0 Votes"
TomFONG-3632 asked YutongTie-MSFT commented

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

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-speech
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello Tom,

Hope you have solved this issue. Please let us know if you are still blocked.

Regards,
Yutong

0 Votes 0 ·

1 Answer

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.