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

TranscriptionResult.md

116 lines1.4 KB

1---
2id: TranscriptionResult
3title: TranscriptionResult
4---
5​
6Defined in: packages/ai/src/types.ts:3202
7​
8Result of audio transcription.
9​
10## Properties
11​
12### artifacts?
13​
14```ts
15optional artifacts?: PersistedArtifactRef[];
16```
17​
18Defined in: packages/ai/src/types.ts:3220
19​
20Persisted artifact references for generated assets, when available
21​
22***
23​
24### duration?
25​
26```ts
27optional duration?: number;
28```
29​
30Defined in: packages/ai/src/types.ts:3212
31​
32Duration of the audio in seconds
33​
34***
35​
36### id
37​
38```ts
39id: string;
40```
41​
42Defined in: packages/ai/src/types.ts:3204
43​
44Unique identifier for the transcription
45​
46***
47​
48### language?
49​
50```ts
51optional language?: string;
52```
53​
54Defined in: packages/ai/src/types.ts:3210
55​
56Language detected or specified
57​
58***
59​
60### model
61​
62```ts
63model: string;
64```
65​
66Defined in: packages/ai/src/types.ts:3206
67​
68Model used for transcription
69​
70***
71​
72### segments?
73​
74```ts
75optional segments?: TranscriptionSegment[];
76```
77​
78Defined in: packages/ai/src/types.ts:3214
79​
80Detailed segments with timing, if available
81​
82***
83​
84### text
85​
86```ts
87text: string;
88```
89​
90Defined in: packages/ai/src/types.ts:3208
91​
92The full transcribed text
93​
94***
95​
96### usage?
97​
98```ts
99optional usage?: TokenUsage<ProviderUsageDetails>;
100```
101​
102Defined in: packages/ai/src/types.ts:3218
103​
104Token usage information (if provided by the adapter)
105​
106***
107​
108### words?
109​
110```ts
111optional words?: TranscriptionWord[];
112```
113​
114Defined in: packages/ai/src/types.ts:3216
115​
116Word-level timestamps, if available