SpeechSynthesisWordBoundaryEventArgs class

Defines contents of speech synthesis word boundary event.

Constructors

SpeechSynthesisWordBoundaryEventArgs(number, string, number, number)

Creates and initializes an instance of this class.

Properties

audioOffset

Specifies the audio offset.

text

Specifies the text of the word boundary event.

textOffset

Specifies the text offset.

wordLength

Specifies the word length

Constructor Details

SpeechSynthesisWordBoundaryEventArgs(number, string, number, number)

Creates and initializes an instance of this class.

new SpeechSynthesisWordBoundaryEventArgs(audioOffset: number, text: string, wordLength: number, textOffset: number)

Parameters

audioOffset

number

The audio offset.

text

string

The text.

wordLength

number

The length of the word.

textOffset

number

The text offset.

Property Details

audioOffset

Specifies the audio offset.

number audioOffset

Property Value

number

the audio offset.

text

Specifies the text of the word boundary event.

string text

Property Value

string

the text.

textOffset

Specifies the text offset.

number textOffset

Property Value

number

the text offset.

wordLength

Specifies the word length

number wordLength

Property Value

number

the word length