TranscriptionSegment interface

A single segment of transcribed audio with timestamps.

Signature:

export declare interface TranscriptionSegment 

Properties

Property Type Description
fromTimestampMs number Start timestamp of the segment in milliseconds relative to the start of the audio stream.
isFinal boolean Whether this segment is finalized (true) or an interim hypothesis (false).
toTimestampMs number End timestamp of the segment in milliseconds relative to the start of the audio stream.
transcript string The transcribed text for this segment.

TranscriptionSegment.fromTimestampMs

Start timestamp of the segment in milliseconds relative to the start of the audio stream.

Signature:

fromTimestampMs: number;

TranscriptionSegment.isFinal

Whether this segment is finalized (true) or an interim hypothesis (false).

Signature:

isFinal: boolean;

TranscriptionSegment.toTimestampMs

End timestamp of the segment in milliseconds relative to the start of the audio stream.

Signature:

toTimestampMs: number;

TranscriptionSegment.transcript

The transcribed text for this segment.

Signature:

transcript: string;