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

TranscriptionResult.md

116 lines1.4 KB

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

Result of audio transcription.

Properties

artifacts?

optional artifacts?: PersistedArtifactRef[];

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

Persisted artifact references for generated assets, when available


duration?

optional duration?: number;

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

Duration of the audio in seconds


id

id: string;

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

Unique identifier for the transcription


language?

optional language?: string;

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

Language detected or specified


model

model: string;

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

Model used for transcription


segments?

optional segments?: TranscriptionSegment[];

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

Detailed segments with timing, if available


text

text: string;

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

The full transcribed text


usage?

optional usage?: TokenUsage<ProviderUsageDetails>;

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

Token usage information (if provided by the adapter)


words?

optional words?: TranscriptionWord[];

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

Word-level timestamps, if available