Class TranslationSynthesisResult
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.translation.TranslationSynthesisResult
-
public final class TranslationSynthesisResult extends Object
Defines translation synthesis result, i.e. the voice output of the translated text in the target language.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectbyte[]getAudio()The voice output of the translated text in the target language.ResultReasongetReason()Specifies reason the result was created.StringtoString()Returns a String that represents the speech recognition result.
-
-
-
Method Detail
-
close
public void close()
Explicitly frees any external resource attached to the object
-
getReason
public ResultReason getReason()
Specifies reason the result was created.- Returns:
- Specifies reason of the result.
-
getAudio
public byte[] getAudio()
The voice output of the translated text in the target language.- Returns:
- Translated text in the target language.
-
-