Skip to content

Commit 6b19a8c

Browse files
Merge pull request #264509 from TimShererWithAquent/us200722c
Freshness update: Azure AI Speech service
2 parents 5bebe81 + 89c96ff commit 6b19a8c

File tree

11 files changed

+44
-37
lines changed

11 files changed

+44
-37
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
---
22
title: "Speech to text quickstart - Speech service"
33
titleSuffix: Azure AI services
4-
description: In this quickstart, learn how to convert speech to text with recognition from a microphone or .wav file.
4+
description: In this quickstart, learn how to use the Speech service to convert speech to text with recognition from a microphone or .wav file.
55
author: eric-urban
66
manager: nitinme
77
ms.service: azure-ai-speech
88
ms.topic: quickstart
9-
ms.date: 08/24/2023
9+
ms.date: 01/30/2024
1010
ms.author: eur
1111
ms.devlang: cpp
1212
# ms.devlang: cpp, csharp, golang, java, javascript, objective-c, python
1313
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
1414
zone_pivot_groups: programming-languages-speech-services
1515
keywords: speech to text, speech to text software
16+
#customer intent: As a developer, I want to use Speech services to covert speech to text, from either a microphone or a file using my choice of technology.
1617
---
1718

1819
# Quickstart: Recognize and convert speech to text
@@ -57,7 +58,7 @@ keywords: speech to text, speech to text software
5758
[!INCLUDE [CLI include](includes/quickstarts/speech-to-text-basics/cli.md)]
5859
::: zone-end
5960

60-
## Next steps
61+
## Next step
6162

6263
> [!div class="nextstepaction"]
6364
> [Learn more about speech recognition](how-to-recognize-speech.md)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -53,7 +53,7 @@ Here are some other considerations:
5353

5454
***
5555

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

5858
# [Terminal](#tab/terminal)
5959

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -27,11 +27,12 @@ The Speech SDK is available as a [NuGet package](https://www.nuget.org/packages/
2727
Follow these steps to create a console application and install the Speech SDK.
2828

2929
1. Create a new C++ console project in [Visual Studio Community](https://visualstudio.microsoft.com/downloads/) named `SpeechRecognition`.
30-
1. Install the Speech SDK in your new project with the NuGet package manager.
3130

32-
```powershell
33-
Install-Package Microsoft.CognitiveServices.Speech
34-
```
31+
1. Select **Tools** > **Nuget Package Manager** > **Package Manager Console**. In the **Package Manager Console**, run this command:
32+
33+
```console
34+
Install-Package Microsoft.CognitiveServices.Speech
35+
```
3536

3637
1. Replace the contents of `SpeechRecognition.cpp` with the following code:
3738

@@ -112,7 +113,7 @@ Follow these steps to create a console application and install the Speech SDK.
112113
1. [Build and run](/cpp/build/vscpp-step-2-build) your new console application to start speech recognition from a microphone.
113114

114115
> [!IMPORTANT]
115-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
116+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
116117
117118
1. Speak into your microphone when prompted. What you speak should appear as text:
118119

@@ -129,7 +130,7 @@ Here are some other considerations:
129130
- To recognize speech from an audio file, use `FromWavFileInput` instead of `FromDefaultMicrophoneInput`:
130131

131132
```cpp
132-
auto audioInput = AudioConfig::FromWavFileInput("YourAudioFile.wav");
133+
auto audioConfig = AudioConfig::FromWavFileInput("YourAudioFile.wav");
133134
```
134135

135136
- For compressed audio files such as MP4, install GStreamer and use `PullAudioInputStream` or `PushAudioInputStream`. For more information, see [How to use compressed input audio](~/articles/ai-services/speech-service/how-to-use-codec-compressed-audio-input-streams.md).

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -26,12 +26,14 @@ The Speech SDK is available as a [NuGet package](https://www.nuget.org/packages/
2626

2727
Follow these steps to create a console application and install the Speech SDK.
2828

29-
1. Open a command prompt where you want the new project. Create a console application with the .NET CLI, which creates the *Program.cs* file in the project directory.
29+
1. Open a command prompt window in the folder where you want the new project. Run this command to create a console application with the .NET CLI.
3030

3131
```dotnetcli
3232
dotnet new console
3333
```
3434

35+
This command creates the *Program.cs* file in your project directory.
36+
3537
1. Install the Speech SDK in your new project with the .NET CLI.
3638

3739
```dotnetcli
@@ -101,7 +103,7 @@ Follow these steps to create a console application and install the Speech SDK.
101103
```
102104

103105
> [!IMPORTANT]
104-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
106+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
105107
106108
1. Speak into your microphone when prompted. What you speak should appear as text:
107109

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -26,7 +26,8 @@ Install the Speech SDK for Go. For requirements and instructions, see [Install t
2626

2727
Follow these steps to create a GO module.
2828

29-
1. Open a command prompt where you want the new module, and create a new file named *speech-recognition.go*.
29+
1. Open a command prompt window in the folder where you want the new project. Create a new file named *speech-recognition.go*.
30+
3031
1. Copy the following code into *speech-recognition.go*:
3132

3233
```go
@@ -109,7 +110,7 @@ Follow these steps to create a GO module.
109110
```
110111

111112
> [!IMPORTANT]
112-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
113+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
113114
114115
1. Build and run the code:
115116

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -16,7 +16,7 @@ ms.author: eur
1616

1717
## Set up the environment
1818

19-
Before you can do anything, you need to install the Speech SDK. The sample in this quickstart works with the [Java Runtime](~/articles/ai-services/speech-service/quickstarts/setup-platform.md?pivots=programming-language-java&tabs=jre).
19+
To set up your environment, [install the Speech SDK](~/articles/ai-services/speech-service/quickstarts/setup-platform.md?pivots=programming-language-java&tabs=jre). The sample in this quickstart works with the [Java Runtime](~/articles/ai-services/speech-service/quickstarts/setup-platform.md?pivots=programming-language-java&tabs=jre).
2020

2121
1. Install [Apache Maven](https://maven.apache.org/install.html). Then run `mvn -v` to confirm successful installation.
2222
1. Create a new `pom.xml` file in the root of your project, and copy the following code into it:
@@ -125,7 +125,7 @@ Follow these steps to create a console application for speech recognition.
125125
```
126126

127127
> [!IMPORTANT]
128-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
128+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
129129
130130
1. Speak into your microphone when prompted. What you speak should appear as text:
131131

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -18,7 +18,7 @@ You also need a *.wav* audio file on your local machine. You can use your own *.
1818

1919
## Set up the environment
2020

21-
Before you can do anything, you need to install the Speech SDK for JavaScript. Run this command: `npm install microsoft-cognitiveservices-speech-sdk`. For guided installation instructions, see [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-javascript).
21+
To set up your environment, install the Speech SDK for JavaScript. Run this command: `npm install microsoft-cognitiveservices-speech-sdk`. For guided installation instructions, see [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-javascript).
2222

2323
### Set environment variables
2424

@@ -28,7 +28,7 @@ Before you can do anything, you need to install the Speech SDK for JavaScript. R
2828

2929
Follow these steps to create a Node.js console application for speech recognition.
3030

31-
1. Open a command prompt where you want the new project, and create a new file named *SpeechRecognition.js*.
31+
1. Open a command prompt window where you want the new project, and create a new file named *SpeechRecognition.js*.
3232
1. Install the Speech SDK for JavaScript:
3333

3434
```console
@@ -75,6 +75,7 @@ Follow these steps to create a Node.js console application for speech recognitio
7575
```
7676

7777
1. In *SpeechRecognition.js*, replace *YourAudioFile.wav* with your own *.wav* file. This example only recognizes speech from a *.wav* file. For information about other audio formats, see [How to use compressed input audio](~/articles/ai-services/speech-service/how-to-use-codec-compressed-audio-input-streams.md). This example supports up to 30 seconds of audio.
78+
7879
1. 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`. For details about how to identify one of multiple languages that might be spoken, see [Language identification](~/articles/ai-services/speech-service/language-identification.md).
7980

8081
1. Run your new console application to start speech recognition from a file:
@@ -84,7 +85,7 @@ Follow these steps to create a Node.js console application for speech recognitio
8485
```
8586

8687
> [!IMPORTANT]
87-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
88+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
8889
8990
The speech from the audio file should be output as text:
9091

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -72,12 +72,12 @@ Follow these steps to recognize speech in a macOS application.
7272

7373
1. 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`. For details about how to identify one of multiple languages that might be spoken, see [Language identification](~/articles/ai-services/speech-service/language-identification.md).
7474
1. To make the debug output visible, select **View** > **Debug Area** > **Activate Console**.
75-
1. Build and run the example code by selecting **Product** > **Run** from the menu or selecting the **Play** button.
75+
1. To build and run the example code, select **Product** > **Run** from the menu or select the **Play** button.
7676

7777
> [!IMPORTANT]
78-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
78+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
7979
80-
After you select the button in the app and say a few words, you should see the text you have spoken on the lower part of the screen. When you run the app for the first time, you should be prompted to give the app access to your computer's microphone.
80+
After you select the button in the app and say a few words, you should see the text that you spoke on the lower part of the screen. When you run the app for the first time, it prompts you to give the app access to your computer's microphone.
8181

8282
## Remarks
8383

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -31,7 +31,8 @@ Install a version of [Python from 3.7 or later](https://www.python.org/downloads
3131

3232
Follow these steps to create a console application.
3333

34-
1. Open a command prompt where you want the new project, and create a new file named *speech_recognition.py*.
34+
1. Open a command prompt window in the folder where you want the new project. Create a new file named *speech_recognition.py*.
35+
3536
1. Run this command to install the Speech SDK:
3637

3738
```console
@@ -78,7 +79,7 @@ Follow these steps to create a console application.
7879
```
7980

8081
> [!IMPORTANT]
81-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
82+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
8283
8384
1. Speak into your microphone when prompted. What you speak should appear as text:
8485

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: eric-urban
33
ms.service: azure-ai-speech
44
ms.topic: include
5-
ms.date: 08/24/2023
5+
ms.date: 01/30/2024
66
ms.author: eur
77
---
88

@@ -60,7 +60,7 @@ curl --location --request POST \
6060
* * *
6161

6262
> [!IMPORTANT]
63-
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
63+
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` [environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
6464
6565
You should receive a response similar to what is shown here. The `DisplayText` should be the text that was recognized from your audio file. The command recognizes up to 60 seconds of audio and converts it to text.
6666

0 commit comments

Comments
 (0)