Skip to content

Commit 03f8417

Browse files
authored
Merge pull request #49400 from GitHubber17/1320921-intents-speech-cpp
edit pass: Cognitive Services Speech SDK intents
2 parents 393a5b0 + 10241c5 commit 03f8417

10 files changed

+51
-51
lines changed

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

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

@@ -15,28 +15,28 @@ ms.author: wolfma
1515

1616
# Recognize intents from speech by using the Speech SDK for C++
1717

18-
[!INCLUDE [Selector](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-selector.md)]
18+
[!INCLUDE [Article selector](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-selector.md)]
1919

20-
[!INCLUDE [Intro](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-intro.md)]
20+
[!INCLUDE [Introduction](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-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/intent_recognition_samples.cpp#toplevel)]
2525

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

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

30-
[!INCLUDE [Intro - using microphone and language](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-microphone-language.md)]
30+
[!INCLUDE [Introduction to using a microphone and language](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-microphone-language.md)]
3131

32-
[!code-cpp[Intent Recognition Using Microphone In A Specified Language](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/intent_recognition_samples.cpp#IntentRecognitionWithLanguage)]
32+
[!code-cpp[Intent recognition by using a microphone in a specified language](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/intent_recognition_samples.cpp#IntentRecognitionWithLanguage)]
3333

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

36-
[!code-cpp[Intent Recognition Using Events From a File](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/intent_recognition_samples.cpp#IntentContinuousRecognitionWithFile)]
36+
[!code-cpp[Intent recognition by using events from a file](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/intent_recognition_samples.cpp#IntentContinuousRecognitionWithFile)]
3737

3838
[!INCLUDE [Get the samples](../../../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-intents-from-speech-csharp.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: 'Recognize intents from speech by using the Speech SDK for C#'
2+
title: Recognize intents from speech by using the Speech SDK for C#
33
titleSuffix: "Microsoft Cognitive Services"
44
description: |
5-
Shows various ways to recognize intents from speech (from file, from microphone) using the Speech SDK for C#.
5+
Learn how to recognize intents from speech from a file or a microphone by using the Speech SDK for C#.
66
services: cognitive-services
77
author: wolfma61
88

@@ -15,28 +15,28 @@ ms.author: wolfma
1515

1616
# Recognize intents from speech by using the Speech SDK for C#
1717

18-
[!INCLUDE [Selector](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-selector.md)]
18+
[!INCLUDE [Article selector](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-selector.md)]
1919

20-
[!INCLUDE [Intro](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-intro.md)]
20+
[!INCLUDE [Introduction](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-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/intent_recognition_samples.cs#toplevel)]
2525

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

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

30-
[!INCLUDE [Intro - using microphone and language](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-microphone-language.md)]
30+
[!INCLUDE [Introduction - using microphone and language](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-microphone-language.md)]
3131

32-
[!code-csharp[Intent Recognition Using Microphone In A Specified Language](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/intent_recognition_samples.cs#intentRecognitionWithLanguage)]
32+
[!code-csharp[Intent recognition by using a microphone in a specified language](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/intent_recognition_samples.cs#intentRecognitionWithLanguage)]
3333

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

36-
[!code-csharp[Intent Recognition Using Events From a File](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/intent_recognition_samples.cs#intentContinuousRecognitionWithFile)]
36+
[!code-csharp[Intent recognition by using events from a file](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/intent_recognition_samples.cs#intentContinuousRecognitionWithFile)]
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-intents-from-speech-java.md

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

@@ -15,27 +15,28 @@ ms.author: wolfma
1515

1616
# Recognize intents from speech by using the Speech SDK for Java
1717

18-
[!INCLUDE [Selector](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-selector.md)]
18+
[!INCLUDE [Article selector](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-selector.md)]
1919

20-
[!INCLUDE [Intro](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-intro.md)]
20+
[!INCLUDE [Introduction](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-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/IntentRecognitionSamples.java#toplevel)]
2525

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

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

30-
[!INCLUDE [Intro - using microphone and language](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-microphone-language.md)]
30+
[!INCLUDE [Introduction to using a microphone and language](../../../includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-microphone-language.md)]
3131

32-
[!code-java[Intent Recognition Using Microphone In A Specified Language](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/IntentRecognitionSamples.java#IntentRecognitionWithLanguage)]
32+
[!code-java[Intent recognition by using a microphone in a specified language](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/IntentRecognitionSamples.java#IntentRecognitionWithLanguage)]
3333

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

36-
[!code-java[Intent Recognition Using Events From a File](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/IntentRecognitionSamples.java#IntentContinuousRecognitionWithFile)]
36+
[!code-java[Intent recognition by using events from a file](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/IntentRecognitionSamples.java#IntentContinuousRecognitionWithFile)]
3737

3838
[!INCLUDE [Get the samples](../../../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

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

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

9-
## Intent recognition from a file, using events
9+
## Intent recognition from a file with events
1010

11-
The code snippet shows how to recognize intent in the default language (`en-US`) in a continuous way. This code allows access to additional information, like intermediate results.
12-
Input is taken from an audio file, the supported format is single-channel (mono) WAV / PCM with a sampling rate of 16 kHz.
11+
The following code shows how to recognize intent in the default language (en-US) in a continuous way. The code allows access to additional information like intermediate results. Input is taken from an audio file. The supported format is single-channel (mono) WAV/PCM with a sampling rate of 16 kHz.
1312

14-
[!INCLUDE [Sample Audio](cognitive-services-speech-service-sample-audio.md)]
13+
[!INCLUDE [Sample audio](cognitive-services-speech-service-sample-audio.md)]
1514

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

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

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

11-
The [Speech SDK](~/articles/cognitive-services/speech-service/speech-sdk.md) provides a way to recognize **intents from speech**, powered by the Speech service and the [Language Understanding service (LUIS)](https://www.luis.ai/home).
11+
The Microsoft Cognitive Services [Speech SDK](~/articles/cognitive-services/speech-service/speech-sdk.md) provides a way to recognize **intents from speech** and is supported by the Cognitive Services [Language Understanding service (LUIS)](https://www.luis.ai/home).
1212

13-
1. Create a speech factory, providing a Language Understanding service subscription key and [region](~/articles/cognitive-services/speech-service/regions.md#regions-for-intent-recognition). The Language Understanding service subscription key is called **endpoint key** in the service documentation. You can't use the Language Understanding service authoring key. See also the **Note** below.
13+
1. Create a speech factory with a LUIS subscription key and [region](~/articles/cognitive-services/speech-service/regions.md#regions-for-intent-recognition) as parameters. The LUIS subscription key is called **endpoint key** in the service documentation. You can't use the LUIS authoring key. (See the note later in this section.)
1414

1515
1. Get an intent recognizer from the speech factory. A recognizer can use your device's default microphone, an audio stream, or audio from a file.
1616

17-
1. Get the language understanding model based on your AppId, and add the intents you require.
17+
1. Get the language understanding model that's based on your **AppId**. Add the intents you require.
1818

19-
1. Tie up the events for asynchronous operation, if desired. The recognizer then calls your event handlers when it has interim and final results (including intents). Otherwise, your application will receive a final transcription result.
19+
1. Tie up the events for asynchronous operation, if desired. The recognizer then calls your event handlers when it has interim and final results (includes intents). If you don't tie up the events, your application receives only a final transcription result.
2020

21-
1. Start intent recognition. For single-shot recognition, like command or query recognition, use `RecognizeAsync()`, which returns the first utterance being recognized. For long-running recognition use `StartContinuousRecognitionAsync()` and tie up the events for asynchronous recognition results.
21+
1. Start intent 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, use the `StartContinuousRecognitionAsync()` method. Tie up the events for asynchronous recognition results.
2222

23-
See the code snippets below for intent recognition scenarios using the Speech SDK. Replace your own Language Understanding subscription key (endpoint key), the [region of your subscription](~/articles/cognitive-services/speech-service/regions.md#regions-for-intent-recognition), and the AppId of your intent model in the appropriate places in the samples.
23+
See the following code snippets for intent recognition scenarios that use the Speech SDK. Replace the values in the sample with your own LUIS subscription key (endpoint key), the [region of your subscription](~/articles/cognitive-services/speech-service/regions.md#regions-for-intent-recognition), and the **AppId** of your intent model.
2424

2525
> [!NOTE]
26-
> In contrast to other services supported by the Speech SDK, intent recognition requires a specific subscription key (Language Understanding service endpoint key). [Here](https://www.luis.ai) you can find additional information about the intent recognition technology. How to acquire the **endpoint key** is described [here](https://docs.microsoft.com/en-us/azure/cognitive-services/LUIS/luis-how-to-azure-subscription#create-luis-endpoint-key).
26+
> In contrast to other services supported by the Speech SDK, intent recognition requires a specific subscription key (LUIS endpoint key). For information about the intent recognition technology, see the [LUIS website](https://www.luis.ai). For information on how to acquire the **endpoint key**, see [Create a LUIS endpoint key](https://docs.microsoft.com/azure/cognitive-services/LUIS/luis-how-to-azure-subscription#create-luis-endpoint-key).

includes/cognitive-services-speech-service-how-to-recognize-intents-from-speech-microphone-language.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-
## Intent recognition using microphone in a specified language
9+
## Intent recognition for a specified language
1010

11-
The code snippet below shows how to recognize intent from microphone input in a specified language, in this case in German (`de-de`).
11+
The following code shows how to recognize intent from microphone input in a specified language. In this example, the language is German (de-de).
1212

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

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

9-
## Intent recognition using microphone
9+
## Intent recognition from a microphone
1010

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

includes/cognitive-services-speech-service-how-to-toplevel-declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ ms.author: wolfma
88

99
## Top-level declarations
1010

11-
For all code below, the following top-level declarations should be in place:
11+
For all code in the following sections, these top-level declarations should be in place:
1212

includes/cognitive-services-speech-service-sample-audio.md

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

99
> [!NOTE]
10-
> Need a sample audio? Please right-click and choose **Save target as** on this link: [whatstheweatherlike.wav](https://raw.githubusercontent.com/Azure-Samples/Cognitive-Speech-STT-Android/95b698b584bce01d7cfa7faa15fb254482b6402e/samples/SpeechRecoExample/assets/whatstheweatherlike.wav)
10+
> Need a sample audio? Right-click this [WAV file](https://raw.githubusercontent.com/Azure-Samples/Cognitive-Speech-STT-Android/95b698b584bce01d7cfa7faa15fb254482b6402e/samples/SpeechRecoExample/assets/whatstheweatherlike.wav) and choose **Save target as**.

includes/cognitive-services-speech-service-speech-sdk-sample-download-h2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ ms.author: wolfma
88

99
## Get the samples
1010

11-
For the latest set of samples, check out our [Cognitive Services Speech SDK Sample GitHub repository](https://aka.ms/csspeech/samples).
11+
For the latest samples, see the [Cognitive Services Speech SDK sample code repository](https://aka.ms/csspeech/samples) on GitHub.
1212

0 commit comments

Comments
 (0)