Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

TranscriptionSegment.md

82 lines1.6 KB

Interface: TranscriptionSegment

Defined in: packages/typescript/ai/src/types.ts:1690

A single segment of transcribed audio with timing information.

Properties

confidence?

optional confidence: number;

Defined in: packages/typescript/ai/src/types.ts:1700

Confidence score (0-1), if available


end

end: number;

Defined in: packages/typescript/ai/src/types.ts:1696

End time of the segment in seconds


id

id: number;

Defined in: packages/typescript/ai/src/types.ts:1692

Unique identifier for the segment


speaker?

optional speaker: string;

Defined in: packages/typescript/ai/src/types.ts:1702

Speaker identifier, if diarization is enabled


start

start: number;

Defined in: packages/typescript/ai/src/types.ts:1694

Start time of the segment in seconds


text

text: string;

Defined in: packages/typescript/ai/src/types.ts:1698

Transcribed text for this segment