Member Junction
    Preparing search index...

    Interface SpeechAlignment

    Character-level timing alignment returned by a text-to-speech provider when TextToSpeechParams.IncludeTimestamps is requested and supported by the driver.

    All three arrays are parallel and indexed by character position: Characters[i] is spoken from StartSeconds[i] to EndSeconds[i].

    interface SpeechAlignment {
        Characters: string[];
        EndSeconds: number[];
        StartSeconds: number[];
    }
    Index

    Properties

    Characters: string[]

    Characters in the synthesized text, in spoken order.

    EndSeconds: number[]

    End timestamp (in seconds from clip start) for each entry in Characters.

    StartSeconds: number[]

    Start timestamp (in seconds from clip start) for each entry in Characters.