TranscriptionSegment interface

A single transcribed segment emitted by AudioTranscriber.

Signature:

export declare interface TranscriptionSegment 

Properties

Property Type Description
fromTimestampMs number Start timestamp of the segment in milliseconds.
isFinal boolean Whether this segment is finalized (as opposed to an interim hypothesis).
toTimestampMs number End timestamp of the segment in milliseconds.
transcript string The transcribed text for this segment.

TranscriptionSegment.fromTimestampMs

Start timestamp of the segment in milliseconds.

Signature:

fromTimestampMs: number;

TranscriptionSegment.isFinal

Whether this segment is finalized (as opposed to an interim hypothesis).

Signature:

isFinal: boolean;

TranscriptionSegment.toTimestampMs

End timestamp of the segment in milliseconds.

Signature:

toTimestampMs: number;

TranscriptionSegment.transcript

The transcribed text for this segment.

Signature:

transcript: string;