When I try TTS ervice I got:WebSocket upgrade failed: Authentication error (401). Please check subscription information and region name

KLeon 0 Reputation points
2025-01-12T10:10:39.2+00:00

When I try TTS ervice I got:WebSocket upgrade failed: Authentication error (401). Please check subscription information and region name.

I shure I use correct subscription Key and eastus region (Really I live in other region).

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,037 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 21,460 Reputation points
    2025-01-12T10:52:40.4566667+00:00

    Hello Kleon,

    Thanks for your question.

    Mismatched keys and regions can lead to authentication failures.

    See similar issue that was solved here: https://zcusa.951200.xyz/en-us/answers/questions/285441/speech-cognitive-services-authentication-error-%2840

    Please test that out.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    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.