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:2872

Result of audio transcription.

Properties

artifacts?

optional artifacts?: PersistedArtifactRef[];

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

Persisted artifact references for generated assets, when available


duration?

optional duration?: number;

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

Duration of the audio in seconds


id

id: string;

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

Unique identifier for the transcription


language?

optional language?: string;

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

Language detected or specified


model

model: string;

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

Model used for transcription


segments?

optional segments?: TranscriptionSegment[];

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

Detailed segments with timing, if available


text

text: string;

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

The full transcribed text


usage?

optional usage?: TokenUsage<ProviderUsageDetails>;

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

Token usage information (if provided by the adapter)


words?

optional words?: TranscriptionWord[];

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

Word-level timestamps, if available