WS_OPEN_ERROR_UNDERLYING_IO_ERROR error when testing speech to text sample code

Oleg 10 Reputation points
2023-05-21T20:04:23.83+00:00

I'm using speech to text guide and receive following error:

CANCELED: Reason=Error
CANCELED: ErrorCode=ConnectionFailure
CANCELED: ErrorDetails=Connection failed (no connection to the remote host). Internal error: 11. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_ERROR
wss://eastus.stt.speech.microsoft.com/speech/recognition/interactive/cognitiveservices/v1?language=en-US
X-ConnectionId: c9bf458e020644b0b4f831a09fdf77cd SessionId: c9bf458e020644b0b4f831a09fdf77cd
CANCELED: Did you set the speech resource key and region values?

I tested my key and region in power shell through this troubleshoot guide and it works okay.

How can I make speech to text guide work for me?
I'm using Visual Studio 2022, C#, Windows 11

Attached log file recordLog.txt

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

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.