SpeechSynthesisVisemeEventArgs class

Defines contents of speech synthesis viseme event.

Constructors

SpeechSynthesisVisemeEventArgs(number, number, string)

Creates and initializes an instance of this class.

Properties

animation

Specifies the animation.

audioOffset

Specifies the audio offset.

visemeId

Specifies the viseme ID.

Constructor Details

SpeechSynthesisVisemeEventArgs(number, number, string)

Creates and initializes an instance of this class.

new SpeechSynthesisVisemeEventArgs(audioOffset: number, visemeId: number, animation: string)

Parameters

audioOffset

number

The audio offset.

visemeId

number

The viseme ID.

animation

string

The animation, could be in svg or other format.

Property Details

animation

Specifies the animation.

string animation

Property Value

string

the animation, could be in svg or other format.

audioOffset

Specifies the audio offset.

number audioOffset

Property Value

number

the audio offset.

visemeId

Specifies the viseme ID.

number visemeId

Property Value

number

the viseme ID.