Open History to see the last commit
1---
2id: TTSResult
3title: TTSResult
4---
5
6# Interface: TTSResult
7
8Defined in: [types.ts:909](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L909)
9
10Result of text-to-speech generation.
11
12## Properties
13
14### audio
15
16```ts
17audio: string;
18```
19
20Defined in: [types.ts:915](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L915)
21
22Base64-encoded audio data
23
24***
25
26### contentType?
27
28```ts
29optional contentType: string;
30```
31
32Defined in: [types.ts:921](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L921)
33
34Content type of the audio (e.g., 'audio/mp3')
35
36***
37
38### duration?
39
40```ts
41optional duration: number;
42```
43
44Defined in: [types.ts:919](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L919)
45
46Duration of the audio in seconds, if available
47
48***
49
50### format
51
52```ts
53format: string;
54```
55
56Defined in: [types.ts:917](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L917)
57
58Audio format of the generated audio
59
60***
61
62### id
63
64```ts
65id: string;
66```
67
68Defined in: [types.ts:911](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L911)
69
70Unique identifier for the generation
71
72***
73
74### model
75
76```ts
77model: string;
78```
79
80Defined in: [types.ts:913](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L913)
81
82Model used for generation