Class 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 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.
      • toString

        public String toString()
        Returns a String that represents the speech recognition result.
        Overrides:
        toString in class Object
        Returns:
        A String that represents the speech recognition result.