TranslationSynthesisResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. translation. TranslationSynthesisResult
- com.
public final class TranslationSynthesisResult
Defines translation synthesis result, i.e. the voice output of the translated text in the target language.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Explicitly frees any external resource attached to the object |
byte[] |
getAudio()
The voice output of the translated text in the target language. |
Result |
getReason()
Specifies reason the result was created. |
java.lang.String |
toString()
Returns a String that represents the speech recognition result. |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
getAudio
public byte[] getAudio()
The voice output of the translated text in the target language.
Returns:
getReason
public ResultReason getReason()
Specifies reason the result was created.
Returns:
toString
public String toString()
Returns a String that represents the speech recognition result.
Overrides:
TranslationSynthesisResult.toString()Returns:
Applies to
Azure SDK for Java