TranslationSynthesisResult Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.translation.TranslationSynthesisResult

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.

ResultReason 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

Translated text in the target language.

getReason

public ResultReason getReason()

Specifies reason the result was created.

Returns:

Specifies reason of the result.

toString

public String toString()

Returns a String that represents the speech recognition result.

Overrides:

TranslationSynthesisResult.toString()

Returns:

A String that represents the speech recognition result.

Applies to