Skip to content

Commit c010e7c

Browse files
authored
Merge pull request #49752 from GitHubber17/1320921-recognize-speech
edit pass: Cognitive Services recognize speech
2 parents e83584b + 0eda0fc commit c010e7c

9 files changed

+51
-53
lines changed

articles/cognitive-services/Speech-Service/how-to-recognize-speech-cpp.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Recognize speech by using the Speech SDK for C++
33
titleSuffix: Microsoft Cognitive Services
44
description: |
5-
Shows various ways to recognize speech (from file, from microphone, with a customized model, continuously or one-shot) using the Speech SDK for C++.
5+
Learn how to recognize speech (from a file, from a microphone, with a customized model, continuously or one-shot) by using the Speech SDK for C++.
66
services: cognitive-services
77
author: wolfma61
88

@@ -17,26 +17,26 @@ ms.author: wolfma
1717

1818
[!include[Selector](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-selector.md)]
1919

20-
[!include[Intro](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-intro.md)]
20+
[!include[Introduction](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-intro.md)]
2121

22-
[!include[Intro - top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
22+
[!include[Introduction for top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
2323

2424
[!code-cpp[Top-level declarations](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/speech_recognition_samples.cpp#toplevel)]
2525

26-
[!include[Intro - using microphone](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-microphone.md)]
26+
[!include[Introduction to using a microphone](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-microphone.md)]
2727

28-
[!code-cpp[Speech Recognition Using Microphone](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/speech_recognition_samples.cpp#SpeechRecognitionWithMicrophone)]
28+
[!code-cpp[Speech recognition by using a microphone](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/speech_recognition_samples.cpp#SpeechRecognitionWithMicrophone)]
2929

30-
[!include[Intro - customized](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-customized.md)]
30+
[!include[Introduction to using customized recognition](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-customized.md)]
3131

32-
[!code-cpp[Speech Recognition Using a Customized Model](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/speech_recognition_samples.cpp#SpeechRecognitionUsingCustomizedModel)]
32+
[!code-cpp[Speech recognition by using a customized model](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/speech_recognition_samples.cpp#SpeechRecognitionUsingCustomizedModel)]
3333

34-
[!include[Intro - continuous file](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-continuous.md)]
34+
[!include[Introduction to using a continuous file](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-continuous.md)]
3535

36-
[!code-cpp[Continuous Speech Recognition](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/speech_recognition_samples.cpp#SpeechContinuousRecognitionWithFile)]
36+
[!code-cpp[Continuous speech recognition](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/speech_recognition_samples.cpp#SpeechContinuousRecognitionWithFile)]
3737

3838
[!include[Download the sample](../../../includes/cognitive-services-speech-service-speech-sdk-sample-download-h2.md)]
39-
Look for the code in this article in the `samples/cpp/windows/console` folder.
39+
Look for the code that's used in this article in the samples/cpp/windows/console folder.
4040

4141
## Next steps
4242

articles/cognitive-services/Speech-Service/how-to-recognize-speech-csharp.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'Recognize speech by using the Speech SDK for C#'
33
titleSuffix: Microsoft Cognitive Services
44
description: |
5-
Shows various ways to recognize speech (from file, from microphone, with a customized model, continuously or one-shot) using the Speech SDK for C#.
5+
Learn how to recognize speech (from a file, from a microphone, with a customized model, continuously or one-shot) by using the Speech SDK for C#.
66
services: cognitive-services
77
author: wolfma61
88

@@ -17,26 +17,26 @@ ms.author: wolfma
1717

1818
[!include[Selector](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-selector.md)]
1919

20-
[!include[Intro](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-intro.md)]
20+
[!include[Introduction](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-intro.md)]
2121

22-
[!include[Intro - top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
22+
[!include[Introduction for top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
2323

2424
[!code-csharp[Top-level declarations](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#toplevel)]
2525

26-
[!include[Intro - using microphone](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-microphone.md)]
26+
[!include[Introduction to using a microphone](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-microphone.md)]
2727

28-
[!code-csharp[Speech Recognition Using Microphone](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#recognitionWithMicrophone)]
28+
[!code-csharp[Speech recognition by using a microphone](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#recognitionWithMicrophone)]
2929

30-
[!include[Intro - customized](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-customized.md)]
30+
[!include[Introduction to using customized recognition](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-customized.md)]
3131

32-
[!code-csharp[Speech Recognition Using a Customized Model](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#recognitionCustomized)]
32+
[!code-csharp[Speech recognition by using a customized model](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#recognitionCustomized)]
3333

34-
[!include[Intro - continuous file](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-continuous.md)]
34+
[!include[Introduction to using a continuous file](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-continuous.md)]
3535

36-
[!code-csharp[Continuous Speech Recognition](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#recognitionContinuousWithFile)]
36+
[!code-csharp[Continuous speech recognition](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#recognitionContinuousWithFile)]
3737

3838
[!include[Download the sample](../../../includes/cognitive-services-speech-service-speech-sdk-sample-download-h2.md)]
39-
Look for the code in this article in the `samples/csharp/sharedcontent/console` folder.
39+
Look for the code that's used in this article in the samples/csharp/sharedcontent/console folder.
4040

4141
## Next steps
4242

articles/cognitive-services/Speech-Service/how-to-recognize-speech-java.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Recognize speech by using the Speech SDK for Java
33
titleSuffix: Microsoft Cognitive Services
44
description: |
5-
Shows various ways to recognize speech (from file, from microphone, with a customized model, continuously or one-shot) using the Speech SDK for Java.
5+
Learn how to recognize speech (from a file, from a microphone, with a customized model, continuously or one-shot) by using the Speech SDK for Java.
66
services: cognitive-services
77
author: wolfma61
88

@@ -17,25 +17,26 @@ ms.author: wolfma
1717

1818
[!include[Selector](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-selector.md)]
1919

20-
[!include[Intro](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-intro.md)]
20+
[!include[Introduction](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-intro.md)]
2121

22-
[!include[Intro - top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
22+
[!include[Introduction for top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
2323

2424
[!code-java[Top-level declarations](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#toplevel)]
2525

26-
[!include[Intro - using microphone](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-microphone.md)]
26+
[!include[Introduction to using a microphone](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-microphone.md)]
2727

28-
[!code-java[Speech Recognition Using Microphone](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#recognitionWithMicrophone)]
28+
[!code-java[Speech recognition by using a microphone](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#recognitionWithMicrophone)]
2929

30-
[!include[Intro - customized](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-customized.md)]
30+
[!include[Introduction to using customized recognition](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-customized.md)]
3131

32-
[!code-java[Speech Recognition Using a Customized Model](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#recognitionCustomized)]
32+
[!code-java[Speech recognition by using a customized model](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#recognitionCustomized)]
3333

34-
[!include[Intro - continuous file](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-continuous.md)]
34+
[!include[Introduction to using a continuous file](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-continuous.md)]
3535

36-
[!code-java[Continuous Speech Recognition](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#recognitionContinuousWithFile)]
36+
[!code-java[Continuous speech recognition](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#recognitionContinuousWithFile)]
3737

3838
[!include[Download the sample](../../../includes/cognitive-services-speech-service-speech-sdk-sample-download-h2.md)]
39+
Look for the code that's used in this article in the samples/java/jre/console folder.
3940

4041
## Next steps
4142

articles/cognitive-services/Speech-Service/how-to-recognize-speech-rest.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Recognize speech by using the REST API
3-
description: Learn how to use Speech to Text in the Speech service
3+
description: Learn how to use the Speech to Text API in the Cognitive Services Speech service.
44
titleSuffix: Microsoft Cognitive Services
55
services: cognitive-services
66
author: v-jerkin
@@ -16,17 +16,16 @@ ms.author: v-jerkin
1616

1717
[!include[Selector](../../../includes/cognitive-services-speech-service-how-to-recognize-speech-selector.md)]
1818

19-
The REST API can be used to recognize short utterances using an HTTP POST request.
19+
The REST API can be used to recognize short utterances by using an HTTP POST request.
2020

21-
The REST API is the simplest way to recognize speech if you are not using a language supported by the [SDK](speech-sdk.md).
22-
You can make an HTTP POST request to the service endpoint, pass the entire utterance in the body of the request; and you'll receive a response containing the recognized text.
21+
The REST API is the simplest way to recognize speech if you aren't using a language that's supported by the [SDK](speech-sdk.md). You make an HTTP POST request to the service endpoint and pass the entire utterance in the body of the request. You receive a response that has the recognized text.
2322

2423
> [!NOTE]
25-
> Utterances are limited to 15 seconds or less when using the REST API.
24+
> Utterances are limited to 15 seconds or less when you use the REST API.
2625
> Check out the [Speech SDK](how-to-recognize-speech-csharp.md) for recognition of longer utterances.
2726
28-
For more information on the **Speech to Text** REST API, see [REST APIs](rest-apis.md#speech-to-text). To see it in action, download the [REST API samples](https://github.com/Azure-Samples/SpeechToText-REST) from GitHub.
27+
For more information on the **Speech to Text** REST API, see the [REST APIs](rest-apis.md#speech-to-text) article. To see the API in action, download the [REST API samples](https://github.com/Azure-Samples/SpeechToText-REST) from GitHub.
2928

3029
## Next steps
3130

32-
- [See the REST API overview](rest-apis.md)
31+
- See the [REST API overview](rest-apis.md).

includes/cognitive-services-speech-service-get-subscription-key.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ ms.author: wolfma
77
---
88

99
> [!NOTE]
10-
> Please obtain a subscription key first.
11-
> See [Try the speech service for free](~/articles/cognitive-services/speech-service/get-started.md).
10+
> First, obtain a subscription key. For more information, see [Try the Speech service for free](~/articles/cognitive-services/speech-service/get-started.md).

includes/cognitive-services-speech-service-how-to-recognize-speech-continuous.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: wolfma
88

99
## Continuous speech recognition from a file
1010

11-
The following code snippet continuously recognizes speech input from an audio file in the default language (`en-US`), the supported format is single-channel (mono) WAV / PCM with a sampling rate of 16 kHz.
11+
The following code snippet continuously recognizes speech input from an audio file in the default language (en-US). The supported format is single-channel (mono) WAV / PCM with a sampling rate of 16 kHz.
1212

13-
[!include[Sample Audio](cognitive-services-speech-service-sample-audio.md)]
13+
[!include[Sample audio](cognitive-services-speech-service-sample-audio.md)]
1414

includes/cognitive-services-speech-service-how-to-recognize-speech-customized.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ ms.date: 07/27/2018
66
ms.author: wolfma
77
---
88

9-
## Speech recognition using a customized model
9+
## Speech recognition with a customized model
1010

11-
The [Custom Speech Service (CRIS)](https://www.cris.ai/) allows the customization of the Microsoft's speech-to-text engine for your application.
12-
The snippet below shows how to recognize speech from a microphone using your CRIS model;
13-
fill in your CRIS subscription key and your own deployment identification before running it.
11+
The [Custom Speech service (CRIS)](https://www.cris.ai/) allows the customization of the Microsoft speech-to-text engine for your application.
12+
The following code snippet shows how to recognize speech from a microphone by using your CRIS model. Fill in your CRIS subscription key and your own deployment identification before you run the code.

includes/cognitive-services-speech-service-how-to-recognize-speech-intro.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ ms.author: wolfma
88

99
<!-- N.B. no header, no intents here, language-agnostic -->
1010

11-
The [Speech SDK](~/articles/cognitive-services/speech-service/speech-sdk.md) provides the simplest way to use **Speech to Text** in your application with full functionality.
11+
The Cognitive Services [Speech SDK](~/articles/cognitive-services/speech-service/speech-sdk.md) provides the simplest way to use **Speech to Text** in your application with full functionality.
1212

13-
1. Create a speech factory, providing a Speech service subscription key or an authorization token, and a [region](~/articles/cognitive-services/speech-service/regions.md). You can also specify a custom endpoint to specify a non-standard service endpoint.
13+
1. Create a speech factory and provide a Speech service subscription key (or an authorization token) and a [region](~/articles/cognitive-services/speech-service/regions.md) as parameters. You can also provide a custom endpoint to specify a non-standard service endpoint.
1414

15-
1. Get a speech recognizer from the speech factory. You can configure the input language as well as the output format. A recognizer can use your device's default microphone, an audio stream, or audio from a file.
15+
1. Get a speech recognizer from the speech factory. You can configure the input language and the output format. A recognizer can use your device's default microphone, an audio stream, or audio from a file.
1616

17-
1. Tie up the events for asynchronous operation, if desired. The recognizer then calls your event handlers when it has interim and final results. Otherwise, your application will receive a final transcription result.
17+
1. Tie up the events for asynchronous operation, if desired. The recognizer then calls your event handlers when it has interim and final results. Otherwise, your application receives only a final transcription result.
1818

19-
1. Start recognition. For single-shot recognition, like command or query recognition, use `RecognizeAsync()`, which returns the first utterance being recognized. For long-running recognition, like transcription, use `StartContinuousRecognitionAsync()` and tie up the events for asynchronous recognition results.
19+
1. Start recognition. For single-shot recognition, such as command or query recognition, use the `RecognizeAsync()` method. This method returns the first recognized utterance. For long-running recognition like transcription, use the `StartContinuousRecognitionAsync()` method. Tie up the events for asynchronous recognition results.
2020

21-
See the code snippets below for speech recognition scenarios using the Speech SDK.
21+
See the following code snippets for speech recognition scenarios that use the Speech SDK.
2222

23-
[!include[Get a Subscription Key](cognitive-services-speech-service-get-subscription-key.md)]
23+
[!include[Get a subscription key](cognitive-services-speech-service-get-subscription-key.md)]

includes/cognitive-services-speech-service-how-to-recognize-speech-microphone.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.date: 07/27/2018
66
ms.author: wolfma
77
---
88

9-
## Speech recognition using the microphone
9+
## Speech recognition from a microphone
1010

11-
The code snippet below shows how to recognize speech input from the microphone in the default language (`en-US`).
11+
The following code snippet shows how to recognize speech input from a microphone in the default language (en-US).
1212

0 commit comments

Comments
 (0)