Speech to text Azure CLI WebSocket upgrade failed: Authentication error

Lucas Figueiredo 11 Reputation points
2022-06-07T16:55:06.043+00:00

I am receiving an authentication error when using Speech to Text service through Azure CLI to listen the microphone or to transcript an audio file. Both cases causes the same error asking to check the subscription info, which I have done a few times and even tested two different subscriptions.

SESSION STARTED: eca5e6afb461418ab54cc71021e5dff0

Listening; press ENTER to stop ...

CANCELED: Reason=Error
CANCELED: ErrorCode=AuthenticationFailure
CANCELED: ErrorDetails=WebSocket upgrade failed: Authentication error (401). Please check subscription information and region name. SessionId: eca5e6afb461418ab54cc71021e5dff0
CANCELED: Did you update the subscription info?

SESSION STOPPED: eca5e6afb461418ab54cc71021e5dff0

Does anyone know how to proceed in this scenario?

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

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.