From 77c2cb195d2d66f6f9ff2be51e5b3a74a662df44 Mon Sep 17 00:00:00 2001 From: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com> Date: Tue, 29 Mar 2022 11:05:05 -0500 Subject: [PATCH] docs(samples): remove unsupported field RecognitionResult (#631) --- .../java/com/example/mediatranslation/TranslateFromMic.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/mediatranslation/src/main/java/com/example/mediatranslation/TranslateFromMic.java b/mediatranslation/src/main/java/com/example/mediatranslation/TranslateFromMic.java index 9fde42cdf56..84cb86693c1 100644 --- a/mediatranslation/src/main/java/com/example/mediatranslation/TranslateFromMic.java +++ b/mediatranslation/src/main/java/com/example/mediatranslation/TranslateFromMic.java @@ -60,14 +60,11 @@ public void onStart(StreamController controller) {} public void onResponse(StreamingTranslateSpeechResponse response) { StreamingTranslateSpeechResult res = response.getResult(); String translation = res.getTextTranslationResult().getTranslation(); - String source = res.getRecognitionResult(); if (res.getTextTranslationResult().getIsFinal()) { System.out.println(String.format("\nFinal translation: %s", translation)); - System.out.println(String.format("Final recognition result: %s", source)); } else { System.out.println(String.format("\nPartial translation: %s", translation)); - System.out.println(String.format("Partial recognition result: %s", source)); } }