TranslationSynthesisResult class

Defines translation synthesis result, i.e. the voice output of the translated text in the target language.

Constructors

TranslationSynthesisResult(ResultReason, ArrayBuffer)

Creates and initializes an instance of this class.

Properties

audio

Translated text in the target language.

reason

The synthesis status.

Constructor Details

TranslationSynthesisResult(ResultReason, ArrayBuffer)

Creates and initializes an instance of this class.

new TranslationSynthesisResult(reason: ResultReason, audio: ArrayBuffer)

Parameters

reason
ResultReason

The synthesis reason.

audio

ArrayBuffer

The audio data.

Property Details

audio

Translated text in the target language.

ArrayBuffer audio

Property Value

ArrayBuffer

Translated audio in the target language.

reason

The synthesis status.

ResultReason reason

Property Value

The synthesis status.