WordTimestamp interface

Estimated timing information for a single word in synthesized speech.

Signature:

export declare interface WordTimestamp 

Properties

Property Type Description
endChar number Exclusive end character offset of the word in the input text.
endSec number Estimated end time of the word in seconds from the beginning of the audio.
startChar number Inclusive start character offset of the word in the input text.
startSec number Estimated start time of the word in seconds from the beginning of the audio.
word string The word token from the input text.

WordTimestamp.endChar

Exclusive end character offset of the word in the input text.

Signature:

endChar: number;

WordTimestamp.endSec

Estimated end time of the word in seconds from the beginning of the audio.

Signature:

endSec: number;

WordTimestamp.startChar

Inclusive start character offset of the word in the input text.

Signature:

startChar: number;

WordTimestamp.startSec

Estimated start time of the word in seconds from the beginning of the audio.

Signature:

startSec: number;

WordTimestamp.word

The word token from the input text.

Signature:

word: string;