Skip to content

Commit 4c9962c

Browse files
Merge pull request #249061 from TimShererWithAquent/us141588d
Azure OpenAI Freshness Pass - User Story: 141588
2 parents ee4117a + 8c92b28 commit 4c9962c

File tree

16 files changed

+737
-696
lines changed

16 files changed

+737
-696
lines changed

articles/ai-services/speech-service/get-started-speech-to-text.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: "Speech to text quickstart - Speech service"
33
titleSuffix: Azure AI services
4-
description: In this quickstart, you convert speech to text with recognition from a microphone.
4+
description: In this quickstart, learn how to convert speech to text with recognition from a microphone or .wav file.
55
services: cognitive-services
66
author: eric-urban
77
manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: speech-service
1010
ms.topic: quickstart
11-
ms.date: 09/16/2022
11+
ms.date: 08/24/2023
1212
ms.author: eur
1313
ms.devlang: cpp, csharp, golang, java, javascript, objective-c, python
1414
ms.custom: devx-track-python, devx-track-js, devx-track-csharp, cog-serv-seo-aug-2020, mode-other, devx-track-extended-java, devx-track-go

articles/ai-services/speech-service/includes/common/azure-prerequisites.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
author: eric-urban
33
ms.service: cognitive-services
44
ms.subservice: speech-service
5-
ms.date: 06/30/2022
5+
ms.date: 08/24/2023
66
ms.topic: include
77
ms.author: eur
88
---
99

1010
> [!div class="checklist"]
11-
> * Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
12-
> * <a href="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+
> - <a href="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).

articles/ai-services/speech-service/includes/common/delete-resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: eric-urban
33
ms.service: cognitive-services
44
ms.subservice: speech-service
55
ms.topic: include
6-
ms.date: 01/25/2022
6+
ms.date: 08/24/2023
77
ms.author: eur
88
---
99

articles/ai-services/speech-service/includes/common/environment-variables.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ author: eric-urban
33
ms.service: cognitive-services
44
ms.subservice: speech-service
55
ms.topic: include
6-
ms.date: 09/14/2022
6+
ms.date: 08/24/2023
77
ms.author: eur
88
---
99

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 <a href="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.
1111

1212
> [!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).
1414
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.
1819

1920
#### [Windows](#tab/windows)
2021

@@ -24,9 +25,9 @@ setx SPEECH_REGION your-region
2425
```
2526

2627
> [!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`.
2829
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.
3031

3132
#### [Linux](#tab/linux)
3233

@@ -41,7 +42,7 @@ After you add the environment variables, run `source ~/.bashrc` from your consol
4142

4243
##### Bash
4344

44-
Edit your .bash_profile, and add the environment variables:
45+
Edit your *.bash_profile* file, and add the environment variables:
4546

4647
```bash
4748
export SPEECH_KEY=your-key
@@ -54,12 +55,12 @@ After you add the environment variables, run `source ~/.bash_profile` from your
5455

5556
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.
5657

57-
1. Select **Product** > **Scheme** > **Edit scheme**
58-
1. Select **Arguments** on the **Run** (Debug Run) page
59-
1. Under **Environment Variables** select the plus (+) sign to add a new environment variable.
58+
1. Select **Product** > **Scheme** > **Edit scheme**.
59+
1. Select **Arguments** on the **Run** (Debug Run) page.
60+
1. Under **Environment Variables** select the plus (+) sign to add a new environment variable.
6061
1. Enter `SPEECH_KEY` for the **Name** and enter your Speech resource key for the **Value**.
6162

6263
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`.
6364

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).
6566
***

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/cli.md

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: cognitive-services
44
ms.topic: include
5-
ms.date: 02/12/2022
5+
ms.date: 08/24/2023
66
ms.author: eur
77
---
88

@@ -18,59 +18,77 @@ ms.author: eur
1818

1919
## Recognize speech from a microphone
2020

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:
2222

23-
```console
24-
spx recognize --microphone --source en-US
25-
```
23+
```console
24+
spx recognize --microphone --source en-US
25+
```
2626

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**.
2828

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+
```
3333

3434
## Remarks
35-
Now that you've completed the quickstart, here are some additional considerations:
35+
36+
Here are some other considerations:
3637

3738
- 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+
3840
# [Terminal](#tab/terminal)
41+
3942
```console
4043
spx recognize --file YourAudioFile.wav
4144
spx recognize --file YourAudioFile.mp4 --format any
4245
```
46+
4347
# [PowerShell](#tab/powershell)
48+
4449
```powershell
4550
spx recognize --file YourAudioFile.wav
4651
spx --% recognize --file YourAudioFile.mp4 --format any
4752
```
53+
4854
***
55+
4956
- 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:
57+
5058
# [Terminal](#tab/terminal)
59+
5160
```console
5261
spx recognize --microphone --phrases "Contoso;Jessie;Rehaan;"
5362
spx recognize --microphone --phrases @phrases.txt
5463
```
64+
5565
# [PowerShell](#tab/powershell)
66+
5667
```powershell
5768
spx --% recognize --microphone --phrases "Contoso;Jessie;Rehaan;"
5869
spx --% recognize --microphone --phrases @phrases.txt
70+
5971
```
72+
6073
***
61-
- 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+
6277
```console
6378
spx recognize --microphone --source es-ES
6479
```
80+
6581
- For continuous recognition of audio longer than 30 seconds, append `--continuous`:
82+
6683
```console
6784
spx recognize --microphone --source es-ES --continuous
6885
```
6986

70-
Run this command for information about additional speech recognition options such as file input and output:
71-
```console
72-
spx help recognize
73-
```
87+
- Run this command for information about more speech recognition options such as file input and output:
88+
89+
```console
90+
spx help recognize
91+
```
7492

7593
## Clean up resources
7694

0 commit comments

Comments
 (0)