You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/language-support.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,11 @@ Custom Neural Voice lets you create synthetic voices that are rich in speaking s
65
65
66
66
Select the right locale that matches your training data to train a custom neural voice model. For example, if the recording data is spoken in English with a British accent, select `en-GB`.
67
67
68
-
With the cross-lingual feature (preview), you can transfer your custom neural voice model to speak a second language. For example, with the `zh-CN` data, you can create a voice that speaks `en-AU` or any of the languages with Cross-lingual support.
68
+
With the cross-lingual feature (preview), you can transfer your custom neural voice model to speak a second language. For example, with the `zh-CN` data, you can create a voice that speaks `en-AU` or any of the languages with Cross-lingual support.
69
+
70
+
### Get locales via API and SDK
71
+
72
+
You can also get a list of locales and voices supported for each specific region or endpoint through the [Speech SDK](speech-sdk.md), [Speech-to-text REST API](rest-speech-to-text.md), [Speech-to-text REST API for short audio](rest-speech-to-text-short.md) and [Text-to-speech REST API](rest-text-to-speech.md#get-a-list-of-voices).
@@ -115,10 +119,6 @@ The table in this section summarizes the locales supported for the Intent Recogn
115
119
116
120
***
117
121
118
-
## Get locales via API and SDK
119
-
120
-
You can also get a list of locales and voices supported for each specific region or endpoint through the [Speech SDK](speech-sdk.md), [Speech-to-text REST API](rest-speech-to-text.md), [Speech-to-text REST API for short audio](rest-speech-to-text-short.md) and [Text-to-speech REST API](rest-text-to-speech.md#get-a-list-of-voices).
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/troubleshooting.md
+66-63Lines changed: 66 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,38 +3,29 @@ title: Troubleshoot the Speech SDK - Speech service
3
3
titleSuffix: Azure Cognitive Services
4
4
description: This article provides information to help you solve issues you might encounter when you use the Speech SDK.
5
5
services: cognitive-services
6
-
author: jhakulin
6
+
author: eric-urban
7
7
manager: nitinme
8
8
ms.service: cognitive-services
9
9
ms.subservice: speech-service
10
10
ms.topic: how-to
11
-
ms.date: 07/23/2019
12
-
ms.author: jhakulin
11
+
ms.date: 12/08/2022
12
+
ms.author: eur
13
13
---
14
14
15
15
# Troubleshoot the Speech SDK
16
16
17
17
This article provides information to help you solve issues you might encounter when you use the Speech SDK.
18
18
19
-
## Error: WebSocket Upgrade failed with an authentication error (403)
19
+
## Authentication failed
20
20
21
-
You might have the wrong endpoint for your region or service. Check the URI to make sure it's correct.
21
+
You might observe one of several authentication errors, depending on the programming environment, API, or SDK. Here are some example errors:
22
+
- Did you set the speech resource key and region values?
23
+
- AuthenticationFailure
24
+
- HTTP 403 Forbidden or HTTP 401 Unauthorized. Connection requests without a valid `Ocp-Apim-Subscription-Key` or `Authorization` header are rejected with a status of 403 or 401.
25
+
- ValueError: cannot 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 environment variables. You might also see it when you set the environment variables to something invalid such as your key or region.
26
+
- 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 environment variables.
22
27
23
-
Also, there might be a problem with your Speech resource key or authorization token. For more information, see the next section.
24
-
25
-
## Error: HTTP 403 Forbidden or HTTP 401 Unauthorized
26
-
27
-
This error often is caused by authentication issues. Connection requests without a valid `Ocp-Apim-Subscription-Key` or `Authorization` header are rejected with a status of 403 or 401.
28
-
29
-
* If you're using a resource key for authentication, you might see the error because:
30
-
31
-
- The key is missing or invalid
32
-
- You have exceeded your resource's usage quota
33
-
34
-
* If you're using an authorization token for authentication, you might see the error because:
35
-
36
-
- The authorization token is invalid
37
-
- The authorization token is expired
28
+
For baseline authentication troubleshooting tips, see [validate your resource key](#validate-your-resource-key) and [validate an authorization token](#validate-an-authorization-token). For more information about confirming credentials, see [get the keys for your resource](../cognitive-services-apis-create-account.md?tabs=speech#get-the-keys-for-your-resource).
38
29
39
30
### Validate your resource key
40
31
@@ -43,80 +34,92 @@ You can verify that you have a valid resource key by running one of the followin
43
34
> [!NOTE]
44
35
> Replace `YOUR_RESOURCE_KEY` and `YOUR_REGION` with your own resource key and associated region.
If you entered a valid resource key, the command returns an authorization token, otherwise an error is returned.
65
58
66
59
### Validate an authorization token
67
60
61
+
If you're using an authorization token for authentication, you might see an authentication error because:
62
+
- The authorization token is invalid
63
+
- The authorization token is expired
64
+
68
65
If you use an authorization token for authentication, run one of the following commands to verify that the authorization token is still valid. Tokens are valid for 10 minutes.
69
66
70
67
> [!NOTE]
71
68
> Replace `YOUR_AUDIO_FILE` with the path to your prerecorded audio file. Replace `YOUR_ACCESS_TOKEN` with the authorization token returned in the preceding step. Replace `YOUR_REGION` with the correct region.
If you entered a valid authorization token, the command returns the transcription for your audio file, otherwise an error is returned.
102
101
103
-
---
104
102
105
-
## Error: HTTP 400 Bad Request
103
+
## InitialSilenceTimeout via RecognitionStatus
106
104
107
-
This error usually occurs when the request body contains invalid audio data. Only WAV format is supported. Also, check the request's headers to make sure you specify appropriate values for `Content-Type` and `Content-Length`.
105
+
This issue usually is observed with [single-shot recognition](./how-to-recognize-speech.md#single-shot-recognition) of a single utterance. For example, the error can be returned under the following circumstances:
108
106
109
-
## Error: HTTP 408 Request Timeout
107
+
* The audio begins with a long stretch of silence. In that case, the service stops the recognition after a few seconds and returns `InitialSilenceTimeout`.
108
+
* The audio uses an unsupported codec format, which causes the audio data to be treated as silence.
110
109
111
-
The error most likely occurs because no audio data is being sent to the service. This error also might be caused by network issues.
110
+
It's OK to have silence at the beginning of audio, but only when you use [continuous recognition](./how-to-recognize-speech.md#continuous-recognition).
112
111
113
-
## "RecognitionStatus" in the response is "InitialSilenceTimeout"
112
+
## SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND
114
113
115
-
This issue usually is caused by audio data. You might see this error because:
114
+
This can be returned, for example, when multiple versions of Python have been installed, or if you're not using a supported version of Python. You can try using a different python interpreter or uninstall all python versions and re-install the latest version of python and the Speech SDK.
116
115
117
-
* There's a long stretch of silence at the beginning of the audio. In that case, the service stops the recognition after a few seconds and returns `InitialSilenceTimeout`.
116
+
## HTTP 400 Bad Request
118
117
119
-
* The audio uses an unsupported codec format, which causes the audio data to be treated as silence.
118
+
This error usually occurs when the request body contains invalid audio data. Only WAV format is supported. Also, check the request's headers to make sure you specify appropriate values for `Content-Type` and `Content-Length`.
119
+
120
+
## HTTP 408 Request Timeout
121
+
122
+
The error most likely occurs because no audio data is being sent to the service. This error also might be caused by network issues.
0 commit comments