Open History to see the last commit
1---
2id: GeneratedVoice
3title: GeneratedVoice
4---
5
6Defined in: packages/ai/src/types.ts:3063
7
8A single voice produced by [VoiceGenerationOptions](VoiceGenerationOptions.md).
9
10## Properties
11
12### audio?
13
14```ts
15optional audio?: string;
16```
17
18Defined in: packages/ai/src/types.ts:3070
19
20Base64-encoded preview audio, when the provider returns one
21
22***
23
24### contentType?
25
26```ts
27optional contentType?: string;
28```
29
30Defined in: packages/ai/src/types.ts:3074
31
32Content type of the preview (e.g. 'audio/mpeg')
33
34***
35
36### duration?
37
38```ts
39optional duration?: number;
40```
41
42Defined in: packages/ai/src/types.ts:3076
43
44Duration of the preview in seconds, if available
45
46***
47
48### format?
49
50```ts
51optional format?: string;
52```
53
54Defined in: packages/ai/src/types.ts:3072
55
56Audio format of the preview (e.g. 'mp3')
57
58***
59
60### language?
61
62```ts
63optional language?: string;
64```
65
66Defined in: packages/ai/src/types.ts:3078
67
68Language of the preview, if reported
69
70***
71
72### saved
73
74```ts
75saved: boolean;
76```
77
78Defined in: packages/ai/src/types.ts:3083
79
80Whether the voice is persisted in the provider's voice library. Unsaved
81voices are previews and generally expire.
82
83***
84
85### status
86
87```ts
88status: VoiceTrainingStatus;
89```
90
91Defined in: packages/ai/src/types.ts:3088
92
93Whether the voice can be used in `generateSpeech()` yet. Required so a
94caller never has to guess: every adapter states it outright.
95
96***
97
98### voiceId
99
100```ts
101voiceId: string;
102```
103
104Defined in: packages/ai/src/types.ts:3068
105
106The provider's voice identifier. Pass it straight back as the `voice`
107option on `generateSpeech()`.