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/ai-services/speech-service/includes/common/azure-prerequisites.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
author: eric-urban
3
3
ms.service: cognitive-services
4
4
ms.subservice: speech-service
5
-
ms.date: 06/30/2022
5
+
ms.date: 08/24/2023
6
6
ms.topic: include
7
7
ms.author: eur
8
8
---
9
9
10
10
> [!div class="checklist"]
11
-
> * Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
12
-
> * <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesSpeechServices"title="Create a Speech resource"target="_blank">Create a Speech resource</a> in the Azure portal.
13
-
> * Get the Speech resource key and region. After your Speech resource is deployed, select **Go to resource** to view and manage keys. For more information about Azure AI services resources, see [Get the keys for your resource](~/articles/ai-services/multi-service-resource.md?pivots=azportal#get-the-keys-for-your-resource).
11
+
> - Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services).
12
+
> - <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesSpeechServices"title="Create a Speech resource"target="_blank">Create a Speech resource</a> in the Azure portal.
13
+
> - Your Speech resource key and region. After your Speech resource is deployed, select **Go to resource** to view and manage keys. For more information about Azure AI services resources, see [Get the keys for your resource](~/articles/ai-services/multi-service-resource.md?pivots=azportal#get-the-keys-for-your-resource).
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/includes/common/environment-variables.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,19 @@ author: eric-urban
3
3
ms.service: cognitive-services
4
4
ms.subservice: speech-service
5
5
ms.topic: include
6
-
ms.date: 09/14/2022
6
+
ms.date: 08/24/2023
7
7
ms.author: eur
8
8
---
9
9
10
-
Your application must be authenticated to access Azure AI services resources. For production, use a secure way of storing and accessing your credentials. For example, after you [get a key](~/articles/ai-services/multi-service-resource.md?pivots=azportal#get-the-keys-for-your-resource) for your <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesSpeechServices"title="Create a Speech resource"target="_blank">Speech resource</a>, write it to a new environment variable on the local machine running the application.
10
+
Your application must be authenticated to access Azure AI services resources. For production, use a secure way of storing and accessing your credentials. For example, after you [get a key](~/articles/ai-services/multi-service-resource.md?pivots=azportal#get-the-keys-for-your-resource) for your Speech resource, write it to a new environment variable on the local machine that runs the application.
11
11
12
12
> [!TIP]
13
-
> Don't include the key directly in your code, and never post it publicly. See the Azure AI services [security](../../../security-features.md)article for more authentication options like [Azure Key Vault](../../../use-key-vault.md).
13
+
> Don't include the key directly in your code, and never post it publicly. See [Azure AI services security](../../../security-features.md) for more authentication options such as [Azure Key Vault](../../../use-key-vault.md).
14
14
15
-
To set the environment variable for your Speech resource key, open a console window, and follow the instructions for your operating system and development environment.
16
-
- To set the `SPEECH_KEY` environment variable, replace `your-key` with one of the keys for your resource.
17
-
- To set the `SPEECH_REGION` environment variable, replace `your-region` with one of the regions for your resource.
15
+
To set the environment variable for your Speech resource key, open a console window, and follow the instructions for your operating system and development environment.
16
+
17
+
- To set the `SPEECH_KEY` environment variable, replace *your-key* with one of the keys for your resource.
18
+
- To set the `SPEECH_REGION` environment variable, replace *your-region* with one of the regions for your resource.
18
19
19
20
#### [Windows](#tab/windows)
20
21
@@ -24,9 +25,9 @@ setx SPEECH_REGION your-region
24
25
```
25
26
26
27
> [!NOTE]
27
-
> If you only need to access the environment variable in the current running console, you can set the environment variable with `set` instead of `setx`.
28
+
> If you only need to access the environment variables in the current console, you can set the environment variable with `set` instead of `setx`.
28
29
29
-
After you add the environment variables, you may need to restart any running programs that will need to read the environment variable, including the console window. For example, if you are using Visual Studio as your editor, restart Visual Studio before running the example.
30
+
After you add the environment variables, you might need to restart any programs that need to read the environment variable, including the console window. For example, if you're using Visual Studio as your editor, restart Visual Studio before you run the example.
30
31
31
32
#### [Linux](#tab/linux)
32
33
@@ -41,7 +42,7 @@ After you add the environment variables, run `source ~/.bashrc` from your consol
41
42
42
43
##### Bash
43
44
44
-
Edit your .bash_profile, and add the environment variables:
45
+
Edit your *.bash_profile* file, and add the environment variables:
45
46
46
47
```bash
47
48
export SPEECH_KEY=your-key
@@ -54,12 +55,12 @@ After you add the environment variables, run `source ~/.bash_profile` from your
54
55
55
56
For iOS and macOS development, you set the environment variables in Xcode. For example, follow these steps to set the environment variable in Xcode 13.4.1.
1. Select **Arguments** on the **Run** (Debug Run) page.
60
+
1. Under **Environment Variables** select the plus (+) sign to add a new environment variable.
60
61
1. Enter `SPEECH_KEY` for the **Name** and enter your Speech resource key for the **Value**.
61
62
62
63
To set the environment variable for your Speech resource region, follow the same steps. Set `SPEECH_REGION` to the region of your resource. For example, `westus`.
63
64
64
-
For more configuration options, see the [Xcode documentation](https://help.apple.com/xcode/#/dev745c5c974).
65
+
For more configuration options, see [the Xcode documentation](https://help.apple.com/xcode/#/dev745c5c974).
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/cli.md
+34-16Lines changed: 34 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
author: eric-urban
3
3
ms.service: cognitive-services
4
4
ms.topic: include
5
-
ms.date: 02/12/2022
5
+
ms.date: 08/24/2023
6
6
ms.author: eur
7
7
---
8
8
@@ -18,59 +18,77 @@ ms.author: eur
18
18
19
19
## Recognize speech from a microphone
20
20
21
-
Run the following command to start speech recognition from a microphone:
21
+
1.Run the following command to start speech recognition from a microphone:
22
22
23
-
```console
24
-
spx recognize --microphone --source en-US
25
-
```
23
+
```console
24
+
spx recognize --microphone --source en-US
25
+
```
26
26
27
-
Speak into the microphone, and you see transcription of your words into text in real-time. The Speech CLI stops after a period of silence, 30 seconds, or when you press Ctrl+C.
27
+
1.Speak into the microphone, and you see transcription of your words into text in real-time. The Speech CLI stops after a period of silence, 30 seconds, or when you select **Ctrl**+**C**.
28
28
29
-
```console
30
-
Connection CONNECTED...
31
-
RECOGNIZED: I'm excited to try speech to text.
32
-
```
29
+
```output
30
+
Connection CONNECTED...
31
+
RECOGNIZED: I'm excited to try speech to text.
32
+
```
33
33
34
34
## Remarks
35
-
Now that you've completed the quickstart, here are some additional considerations:
35
+
36
+
Here are some other considerations:
36
37
37
38
- To recognize speech from an audio file, use `--file` instead of `--microphone`. For compressed audio files such as MP4, install GStreamer and use `--format`. For more information, see [How to use compressed input audio](~/articles/ai-services/speech-service/how-to-use-codec-compressed-audio-input-streams.md).
39
+
38
40
# [Terminal](#tab/terminal)
41
+
39
42
```console
40
43
spx recognize --file YourAudioFile.wav
41
44
spx recognize --file YourAudioFile.mp4 --format any
42
45
```
46
+
43
47
# [PowerShell](#tab/powershell)
48
+
44
49
```powershell
45
50
spx recognize --file YourAudioFile.wav
46
51
spx --% recognize --file YourAudioFile.mp4 --format any
47
52
```
53
+
48
54
***
55
+
49
56
- To improve recognition accuracy of specific words or utterances, use a [phrase list](~/articles/ai-services/speech-service/improve-accuracy-phrase-list.md). You include a phrase list in-line or with a text file along with the recognize command:
- To change the speech recognition language, replace `en-US` with another [supported language](~/articles/ai-services/speech-service/language-support.md). For example, `es-ES` for Spanish (Spain). The default language is `en-US` if you don't specify a language.
74
+
75
+
- To change the speech recognition language, replace `en-US` with another [supported language](~/articles/ai-services/speech-service/language-support.md). For example, use `es-ES` for Spanish (Spain). If you don't specify a language, the default is `en-US`.
76
+
62
77
```console
63
78
spx recognize --microphone --source es-ES
64
79
```
80
+
65
81
- For continuous recognition of audio longer than 30 seconds, append `--continuous`:
0 commit comments