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

TranscriptionResult.md

106 lines1.9 KB

Interface: TranscriptionResult

Defined in: packages/ai/src/types.ts:2136

Result of audio transcription.

Properties

duration?

optional duration: number;

Defined in: packages/ai/src/types.ts:2146

Duration of the audio in seconds


id

id: string;

Defined in: packages/ai/src/types.ts:2138

Unique identifier for the transcription


language?

optional language: string;

Defined in: packages/ai/src/types.ts:2144

Language detected or specified


model

model: string;

Defined in: packages/ai/src/types.ts:2140

Model used for transcription


segments?

optional segments: TranscriptionSegment[];

Defined in: packages/ai/src/types.ts:2148

Detailed segments with timing, if available


text

text: string;

Defined in: packages/ai/src/types.ts:2142

The full transcribed text


usage?

optional usage: TokenUsage<ProviderUsageDetails>;

Defined in: packages/ai/src/types.ts:2152

Token usage information (if provided by the adapter)


words?

optional words: TranscriptionWord[];

Defined in: packages/ai/src/types.ts:2150

Word-level timestamps, if available