Skip to content

Commit f4d360c

Browse files
Freshness update: Azure AI Speech service
1 parent d3d9e52 commit f4d360c

File tree

9 files changed

+29
-22
lines changed

9 files changed

+29
-22
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
@@ -6,13 +6,14 @@ 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
@@ -38,11 +39,11 @@ keywords: speech to text, speech to text software
3839
::: zone-end
3940

4041
::: zone pivot="programming-language-objectivec"
41-
[!INCLUDE [ObjectiveC include](includes/quickstarts/speech-to-text-basics/objectivec.md)]
42+
Azure Speech services are not supported.
4243
::: zone-end
4344

4445
::: zone pivot="programming-language-swift"
45-
[!INCLUDE [Swift include](includes/quickstarts/speech-to-text-basics/swift.md)]
46+
Azure Speech services are not supported.
4647
::: zone-end
4748

4849
::: zone pivot="programming-language-python"

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

Lines changed: 1 addition & 1 deletion
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

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

Lines changed: 7 additions & 6 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** > **Packet Manager Console**. In the **Packet 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

@@ -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: 4 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

@@ -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. Command Prompt window in the folder where you want the new project. Run this comment 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

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

Lines changed: 3 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

@@ -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

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/java.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

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

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/javascript.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

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

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

Lines changed: 3 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

@@ -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. 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

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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)