你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: