Word-level timing alignment mapping an input word to audio seconds.
Signature:
export declare interface WordTimestamp
Properties
| Property | Type | Description |
|---|---|---|
| endChar | number | Zero-based byte offset of the end of word (exclusive) in the input text. |
| endSec | number | Estimated end time in seconds within the synthesized audio waveform. |
| startChar | number | Zero-based byte offset of the start of word in the input text. |
| startSec | number | Estimated start time in seconds within the synthesized audio waveform. |
| word | string | Original surface word token from the input text. |
WordTimestamp.endChar
Zero-based byte offset of the end of word (exclusive) in the input text.
Signature:
endChar: number;
WordTimestamp.endSec
Estimated end time in seconds within the synthesized audio waveform.
Signature:
endSec: number;
WordTimestamp.startChar
Zero-based byte offset of the start of word in the input text.
Signature:
startChar: number;
WordTimestamp.startSec
Estimated start time in seconds within the synthesized audio waveform.
Signature:
startSec: number;
WordTimestamp.word
Original surface word token from the input text.
Signature:
word: string;