SpeechSynthesisResult class

Defines result of speech synthesis.

Extends

Constructors

SpeechSynthesisResult(string, ResultReason, ArrayBuffer, string, PropertyCollection, number)

Creates and initializes an instance of this class.

Properties

audioData

The synthesized audio data

audioDuration

The time duration of synthesized audio, in ticks (100 nanoseconds).

errorDetails

In case of an unsuccessful synthesis, provides details of the occurred error.

properties

The set of properties exposed in the result.

reason

Specifies status of the result.

resultId

Specifies the result identifier.

Constructor Details

SpeechSynthesisResult(string, ResultReason, ArrayBuffer, string, PropertyCollection, number)

Creates and initializes an instance of this class.

new SpeechSynthesisResult(resultId?: string, reason?: ResultReason, audioData?: ArrayBuffer, errorDetails?: string, properties?: PropertyCollection, audioDuration?: number)

Parameters

resultId

string

The result id.

reason
ResultReason

The reason.

audioData

ArrayBuffer

The synthesized audio binary.

errorDetails

string

Error details, if provided.

properties
PropertyCollection

Additional properties, if provided.

audioDuration

number

The audio duration.

Property Details

audioData

The synthesized audio data

ArrayBuffer audioData

Property Value

ArrayBuffer

The synthesized audio data.

audioDuration

The time duration of synthesized audio, in ticks (100 nanoseconds).

number audioDuration

Property Value

number

The time duration of synthesized audio.

errorDetails

In case of an unsuccessful synthesis, provides details of the occurred error.

string errorDetails

Property Value

string

a brief description of an error.

properties

The set of properties exposed in the result.

PropertyCollection properties

Property Value

The set of properties exposed in the result.

reason

Specifies status of the result.

ResultReason reason

Property Value

Specifies status of the result.

resultId

Specifies the result identifier.

string resultId

Property Value

string

Specifies the result identifier.