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

TTSCapabilities.md

37 lines845 Bytes

1---
2id: TTSCapabilities
3title: TTSCapabilities
4---
5​
6Defined in: packages/ai/src/activities/generateSpeech/adapter.ts:14
7​
8What a TTS adapter can do beyond a single voice reading a single string.
9​
10Declared statically so `generateSpeech()` can reject an unsupported request
11before it reaches the provider, instead of surfacing a provider 422.
12​
13## Properties
14​
15### maxSpeakers?
16​
17```ts
18optional maxSpeakers?: number;
19```
20​
21Defined in: packages/ai/src/activities/generateSpeech/adapter.ts:20
22​
23Maximum number of distinct voices accepted across `turns`
24(ElevenLabs 10, Gemini 2). Omit it when the adapter has no dialogue
25endpoint — then `turns` is rejected outright.
26​
27***
28​
29### timestamps?
30​
31```ts
32optional timestamps?: boolean;
33```
34​
35Defined in: packages/ai/src/activities/generateSpeech/adapter.ts:22
36​
37Set when the adapter can honour `timestamps: true`.