Skip to content

Commit 662983e

Browse files
committed
Corrected object type in java basics
1 parent 2f6d5fc commit 662983e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class App {
7676
}
7777

7878
static void translateSpeech() {
79-
SpeechConfig config = SpeechConfig.fromSubscription(
79+
SpeechTranslationConfig config = SpeechTranslationConfig.fromSubscription(
8080
SPEECH__SUBSCRIPTION__KEY, SPEECH__SERVICE__REGION);
8181
}
8282
}
@@ -88,7 +88,7 @@ One common task of speech translation is specifying the input (or source) langua
8888

8989
```java
9090
static void translateSpeech() {
91-
SpeechConfig translationConfig = SpeechConfig.fromSubscription(
91+
SpeechTranslationConfig translationConfig = SpeechTranslationConfig.fromSubscription(
9292
SPEECH__SUBSCRIPTION__KEY, SPEECH__SERVICE__REGION);
9393

9494
// Source (input) language

0 commit comments

Comments
 (0)