@Bhagwan Rajput@BHAGWAN RAJPUT Welcome to Microsoft Q&A Forum, Thank you for posting your query here! .
You might observe one of several authentication errors, depending on the programming environment, API, or SDK. Here are some example errors:
- Did you set the speech resource key and region values?
- AuthenticationFailure
- HTTP 403 Forbidden or HTTP 401 Unauthorized. Connection requests without a valid
Ocp-Apim-Subscription-Key
orAuthorization
header are rejected with a status of 403 or 401. - ValueError: can't construct SpeechConfig with the given arguments (or a variation of this message). This error could be observed, for example, when you run one of the Speech SDK for Python quickstarts without setting valid credentials.
- Exception with an error code: 0x5. This access denied error could be observed, for example, when you run one of the Speech SDK for C# quickstarts without setting valid credentials.
For baseline authentication troubleshooting tips, see validate your resource key and validate an authorization token.
.
Hope this helps.