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

TTSTurn.md

36 lines793 Bytes

1---
2id: TTSTurn
3title: TTSTurn
4---
5​
6Defined in: [packages/ai/src/types.ts:2918](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2918)
7​
8One turn of a multi-voice dialogue request.
9​
10Providers that expose a dedicated dialogue endpoint (ElevenLabs
11`textToDialogue`, Gemini multi-speaker) take these natively instead of a
12single `text` + `voice` pair.
13​
14## Properties
15​
16### text
17​
18```ts
19text: string;
20```
21​
22Defined in: [packages/ai/src/types.ts:2920](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2920)
23​
24The text this voice speaks.
25​
26***
27​
28### voice
29​
30```ts
31voice: string;
32```
33​
34Defined in: [packages/ai/src/types.ts:2922](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2922)
35​
36Provider voice id (ElevenLabs) or voice name (Gemini) for this turn.