Skip to content

Commit 8de0872

Browse files
Merge pull request #214779 from eric-urban/eur/tts-qs
rename for tts
2 parents 546b158 + 8407e90 commit 8de0872

File tree

2 files changed

+8
-8
lines changed
  • articles/cognitive-services/Speech-Service/includes
    • how-to/speech-synthesis
    • quickstarts/text-to-speech-basics

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ public class SpeechSynthesis {
288288
// Synthesize the SSML
289289
System.out.println("SSML to synthesize:");
290290
System.out.println(ssml);
291-
SpeechSynthesisResult speechRecognitionResult = speechSynthesizer.SpeakSsmlAsync(ssml).get();
291+
SpeechSynthesisResult speechSynthesisResult = speechSynthesizer.SpeakSsmlAsync(ssml).get();
292292

293-
if (speechRecognitionResult.getReason() == ResultReason.SynthesizingAudioCompleted) {
293+
if (speechSynthesisResult.getReason() == ResultReason.SynthesizingAudioCompleted) {
294294
System.out.println("SynthesizingAudioCompleted result");
295295
}
296-
else if (speechRecognitionResult.getReason() == ResultReason.Canceled) {
297-
SpeechSynthesisCancellationDetails cancellation = SpeechSynthesisCancellationDetails.fromResult(speechRecognitionResult);
296+
else if (speechSynthesisResult.getReason() == ResultReason.Canceled) {
297+
SpeechSynthesisCancellationDetails cancellation = SpeechSynthesisCancellationDetails.fromResult(speechSynthesisResult);
298298
System.out.println("CANCELED: Reason=" + cancellation.getReason());
299299

300300
if (cancellation.getReason() == CancellationReason.Error) {

articles/cognitive-services/Speech-Service/includes/quickstarts/text-to-speech-basics/java.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ Follow these steps to create a new console application for speech recognition.
104104
return;
105105
}
106106

107-
SpeechSynthesisResult speechRecognitionResult = speechSynthesizer.SpeakTextAsync(text).get();
107+
SpeechSynthesisResult speechSynthesisResult = speechSynthesizer.SpeakTextAsync(text).get();
108108

109-
if (speechRecognitionResult.getReason() == ResultReason.SynthesizingAudioCompleted) {
109+
if (speechSynthesisResult.getReason() == ResultReason.SynthesizingAudioCompleted) {
110110
System.out.println("Speech synthesized to speaker for text [" + text + "]");
111111
}
112-
else if (speechRecognitionResult.getReason() == ResultReason.Canceled) {
113-
SpeechSynthesisCancellationDetails cancellation = SpeechSynthesisCancellationDetails.fromResult(speechRecognitionResult);
112+
else if (speechSynthesisResult.getReason() == ResultReason.Canceled) {
113+
SpeechSynthesisCancellationDetails cancellation = SpeechSynthesisCancellationDetails.fromResult(speechSynthesisResult);
114114
System.out.println("CANCELED: Reason=" + cancellation.getReason());
115115

116116
if (cancellation.getReason() == CancellationReason.Error) {

0 commit comments

Comments
 (0)