Skip to content

Commit c72f302

Browse files
authored
Merge pull request #50150 from GitHubber17/1320921-translate-speech
edit pass: cognitive services translate speech
2 parents b9bf0bb + f43774e commit c72f302

7 files changed

+37
-38
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ ms.date: 07/16/2018
1212
ms.author: wolfma
1313
---
1414

15-
# Translate speech by using the Speech SDK for C++
15+
# Translate speech with the Cognitive Services Speech SDK for C++
1616

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

19-
[!INCLUDE [Intro](../../../includes/cognitive-services-speech-service-how-to-translate-speech-intro.md)]
19+
[!INCLUDE [Introduction](../../../includes/cognitive-services-speech-service-how-to-translate-speech-intro.md)]
2020

21-
[!INCLUDE [Intro - top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
21+
[!INCLUDE [Introduction to top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
2222

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

25-
[!INCLUDE [Intro - using microphone](../../../includes/cognitive-services-speech-service-how-to-translate-speech-microphone.md)]
25+
[!INCLUDE [Introduction to using a microphone](../../../includes/cognitive-services-speech-service-how-to-translate-speech-microphone.md)]
2626

27-
[!code-cpp[Translation Using Microphone](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/translation_samples.cpp#TranslationWithMicrophone)]
27+
[!code-cpp[Translation using a microphone](~/samples-cognitive-services-speech-sdk/samples/cpp/windows/console/samples/translation_samples.cpp#TranslationWithMicrophone)]
2828

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

3232
## Next steps
3333

3434
- [How to recognize speech](how-to-recognize-speech-cpp.md)
35-
- [How to recognize intents from speech](how-to-recognize-intents-from-speech-cpp.md).
35+
- [How to recognize intents from speech](how-to-recognize-intents-from-speech-cpp.md)

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ ms.date: 07/16/2018
1212
ms.author: wolfma
1313
---
1414

15-
# Translate speech by using the Speech SDK for C#
15+
# Translate speech with the Cognitive Services Speech SDK for C#
1616

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

19-
[!INCLUDE [Intro](../../../includes/cognitive-services-speech-service-how-to-translate-speech-intro.md)]
19+
[!INCLUDE [Introduction](../../../includes/cognitive-services-speech-service-how-to-translate-speech-intro.md)]
2020

21-
[!INCLUDE [Intro - top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
21+
[!INCLUDE [Introduction to top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
2222

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

25-
[!INCLUDE [Intro - using microphone](../../../includes/cognitive-services-speech-service-how-to-translate-speech-microphone.md)]
25+
[!INCLUDE [Introduction to using a microphone](../../../includes/cognitive-services-speech-service-how-to-translate-speech-microphone.md)]
2626

27-
[!code-csharp[Translation Using Microphone](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/translation_samples.cs#TranslationWithMicrophoneAsync)]
27+
[!code-csharp[Translation from a microphone](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/translation_samples.cs#TranslationWithMicrophoneAsync)]
2828

29-
[!INCLUDE [Intro - using file](../../../includes/cognitive-services-speech-service-how-to-translate-speech-file.md)]
29+
[!INCLUDE [Introduction to using a file](../../../includes/cognitive-services-speech-service-how-to-translate-speech-file.md)]
3030

31-
[!code-csharp[Translation Using File Input](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/translation_samples.cs#TranslationWithFileAsync)]
31+
[!code-csharp[Translation from file input](~/samples-cognitive-services-speech-sdk/samples/csharp/sharedcontent/console/translation_samples.cs#TranslationWithFileAsync)]
3232

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

3636
## Next steps
3737

3838
- [How to recognize speech](how-to-recognize-speech-csharp.md)
39-
- [How to recognize intents from speech](how-to-recognize-intents-from-speech-csharp.md).
39+
- [How to recognize intents from speech](how-to-recognize-intents-from-speech-csharp.md)

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,28 @@ ms.date: 07/16/2018
1212
ms.author: wolfma
1313
---
1414

15-
# Translate speech using the Speech SDK for Java
15+
# Translate speech with the Cognitive Services Speech SDK for Java
1616

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

19-
[!INCLUDE [Intro](../../../includes/cognitive-services-speech-service-how-to-translate-speech-intro.md)]
19+
[!INCLUDE [Introduction](../../../includes/cognitive-services-speech-service-how-to-translate-speech-intro.md)]
2020

21-
[!INCLUDE [Intro - top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
21+
[!INCLUDE [Introduction to top-level declarations](../../../includes/cognitive-services-speech-service-how-to-toplevel-declarations.md)]
2222

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

25-
[!INCLUDE [Intro - using microphone](../../../includes/cognitive-services-speech-service-how-to-translate-speech-microphone.md)]
25+
[!INCLUDE [Introduction to using a microphone](../../../includes/cognitive-services-speech-service-how-to-translate-speech-microphone.md)]
2626

27-
[!code-java [Translation Using Microphone](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/TranslationSamples.java#TranslationWithMicrophoneAsync)]
27+
[!code-java [Translation from a microphone](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/TranslationSamples.java#TranslationWithMicrophoneAsync)]
2828

29-
[!INCLUDE [Intro - using file](../../../includes/cognitive-services-speech-service-how-to-translate-speech-file.md)]
29+
[!INCLUDE [Introduction to using a file](../../../includes/cognitive-services-speech-service-how-to-translate-speech-file.md)]
3030

31-
[!code-java [Translation Using File Input](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/TranslationSamples.java#TranslationWithFileAsync)]
31+
[!code-java [Translation from file input](~/samples-cognitive-services-speech-sdk/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/TranslationSamples.java#TranslationWithFileAsync)]
3232

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

3536
## Next steps
3637

3738
- [How to recognize speech](how-to-recognize-speech-java.md)
38-
- [How to recognize intents from speech](how-to-recognize-intents-from-speech-java.md).
39+
- [How to recognize intents from speech](how-to-recognize-intents-from-speech-java.md)

includes/cognitive-services-speech-service-get-subscription-key.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-
> First, obtain a subscription key. For more information, see [Try the Speech service for free](~/articles/cognitive-services/speech-service/get-started.md).
10+
> First, get 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-translate-speech-file.md

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

9-
## Translation using file input
9+
## Translation from file input
1010

11-
The code snippet below shows how to translate speech input from English to German and French.
12-
It uses a file as input.
11+
The following code snippet shows you how to translate speech input from English to German and French. The code uses a file as input.

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ 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 the simplest way to use **speech translation** in your application.
11+
The Microsoft Cognitive Services [Speech SDK](~/articles/cognitive-services/speech-service/speech-sdk.md) provides the simplest way to use **speech translation** in your application.
1212
The SDK provides the full functionality of the service. The basic process for performing speech translation includes the following steps:
1313

14-
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).
14+
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.
1515

16-
1. Create a translation recognizer from the speech factory. You can configure the source and target translation languages, as well as specifying whether you want text or speech output. There are various flavors of translation recognizers based on the audio source you are using.
16+
1. Create a translation recognizer from the speech factory. You can configure the source and target translation languages, as well as specify whether you want text or speech output. There are various flavors of translation recognizers based on the audio source that you use.
1717

18-
1. Tie up the events for asynchronous operation, if desired. The recognizer then calls your event handlers when it has interim and final results, as well as a synthesis event for the optional audio output. Otherwise, your application will receive a final transcription result.
18+
1. Tie up the events for asynchronous operation, if desired. The recognizer then calls your event handlers when it has interim and final results, as well as a synthesis event for the optional audio output. Otherwise, your application receives only a final transcription result.
1919

20-
1. Start recognition. For single-shot translation use RecognizeAsync(), which returns the first utterance being recognized. For long-running translations, use StartContinuousRecognitionAsync() and tie up the events for asynchronous recognition results.
20+
1. Start recognition. For single-shot translation use the `RecognizeAsync()` method, which returns the first recognized utterance. For long-running translations, use the `StartContinuousRecognitionAsync()` method and tie up the events for asynchronous recognition results.
2121

22-
See the code snippets below for speech translation scenarios using the Speech SDK.
22+
See the following code snippets for speech translation scenarios that use the Speech SDK.
2323

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

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

Lines changed: 2 additions & 3 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-
## Translation using the microphone
9+
## Translation from the microphone
1010

11-
The code snippet below shows how to translate speech input from English to German, and also get the voice output of the translated text.
12-
It uses the microphone.
11+
The following code snippet shows you how to translate speech input from English to German and gets the voice output of the translated text. The code uses the microphone.
1312

0 commit comments

Comments
 (0)