Open History to see the last commit
1---
2id: VoiceResult
3title: VoiceResult
4---
5
6Defined in: [packages/ai/src/types.ts:2780](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2780)
7
8Result of voice creation.
9
10Design models typically return several candidates to choose between; clone
11models return exactly one.
12
13## Properties
14
15### artifacts?
16
17```ts
18optional artifacts?: PersistedArtifactRef[];
19```
20
21Defined in: [packages/ai/src/types.ts:2792](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2792)
22
23Persisted artifact references for generated assets, when available
24
25***
26
27### id
28
29```ts
30id: string;
31```
32
33Defined in: [packages/ai/src/types.ts:2782](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2782)
34
35Unique identifier for the generation
36
37***
38
39### model
40
41```ts
42model: string;
43```
44
45Defined in: [packages/ai/src/types.ts:2784](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2784)
46
47Model used for generation
48
49***
50
51### previewText?
52
53```ts
54optional previewText?: string;
55```
56
57Defined in: [packages/ai/src/types.ts:2788](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2788)
58
59The line spoken in the previews, when the provider generated one
60
61***
62
63### usage?
64
65```ts
66optional usage?: TokenUsage<ProviderUsageDetails>;
67```
68
69Defined in: [packages/ai/src/types.ts:2790](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2790)
70
71Token usage information (if provided by the adapter)
72
73***
74
75### voices
76
77```ts
78voices: GeneratedVoice[];
79```
80
81Defined in: [packages/ai/src/types.ts:2786](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2786)
82
83The voices produced, best-first when the provider ranks them