WordTimestamp interface

Word-level timing alignment mapping an input word to audio seconds.

Signature:

export declare interface WordTimestamp 

Properties

Property Modifiers Type Description
word string Original surface word token from the input text.
startChar number Zero-based byte offset of the start of word in the input text.
endChar number Zero-based byte offset of the end of word (exclusive) in the input text.
startSec number Estimated start time in seconds within the synthesized audio waveform.
endSec number Estimated end time in seconds within the synthesized audio waveform.

WordTimestamp.word

Original surface word token from the input text.

Signature:

word: string;

WordTimestamp.startChar

Zero-based byte offset of the start of word in the input text.

Signature:

startChar: number;

WordTimestamp.endChar

Zero-based byte offset of the end of word (exclusive) in the input text.

Signature:

endChar: number;

WordTimestamp.startSec

Estimated start time in seconds within the synthesized audio waveform.

Signature:

startSec: number;

WordTimestamp.endSec

Estimated end time in seconds within the synthesized audio waveform.

Signature:

endSec: number;