File tree Expand file tree Collapse file tree
mediatranslation/src/main/java/com/example/mediatranslation Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ("\n Final translation: %s" , translation ));
67- System .out .println (String .format ("Final recognition result: %s" , source ));
6866 } else {
6967 System .out .println (String .format ("\n Partial translation: %s" , translation ));
70- System .out .println (String .format ("Partial recognition result: %s" , source ));
7168 }
7269 }
7370
You can’t perform that action at this time.
0 commit comments