Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 36b8519

Browse files
authored
docs(samples): remove unsupported field RecognitionResult (#631)
1 parent 424da78 commit 36b8519

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

samples/snippets/src/main/java/com/example/mediatranslation/TranslateFromMic.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,11 @@ public void onStart(StreamController controller) {}
6060
public void onResponse(StreamingTranslateSpeechResponse response) {
6161
StreamingTranslateSpeechResult res = response.getResult();
6262
String translation = res.getTextTranslationResult().getTranslation();
63-
String source = res.getRecognitionResult();
6463

6564
if (res.getTextTranslationResult().getIsFinal()) {
6665
System.out.println(String.format("\nFinal translation: %s", translation));
67-
System.out.println(String.format("Final recognition result: %s", source));
6866
} else {
6967
System.out.println(String.format("\nPartial translation: %s", translation));
70-
System.out.println(String.format("Partial recognition result: %s", source));
7168
}
7269
}
7370

0 commit comments

Comments
 (0)