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

TranscriptionResult.md

116 lines2.1 KB

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

Result of audio transcription.

Properties

artifacts?

optional artifacts?: PersistedArtifactRef[];

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

Persisted artifact references for generated assets, when available


duration?

optional duration?: number;

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

Duration of the audio in seconds


id

id: string;

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

Unique identifier for the transcription


language?

optional language?: string;

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

Language detected or specified


model

model: string;

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

Model used for transcription


segments?

optional segments?: TranscriptionSegment[];

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

Detailed segments with timing, if available


text

text: string;

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

The full transcribed text


usage?

optional usage?: TokenUsage<ProviderUsageDetails>;

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

Token usage information (if provided by the adapter)


words?

optional words?: TranscriptionWord[];

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

Word-level timestamps, if available