| id | TTSOptions |
|---|---|
| title | TTSOptions |
Defined in: packages/typescript/ai/src/types.ts:1333
Options for text-to-speech generation. These are the common options supported across providers.
TProviderOptions extends object = object
optional format: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";Defined in: packages/typescript/ai/src/types.ts:1341
The output audio format
logger: InternalLogger;Defined in: packages/typescript/ai/src/types.ts:1351
Internal logger threaded from the generateSpeech() entry point. Adapters must call logger.request() before the SDK call and logger.errors() in catch blocks.
model: string;Defined in: packages/typescript/ai/src/types.ts:1335
The model to use for TTS generation
optional modelOptions: TProviderOptions;Defined in: packages/typescript/ai/src/types.ts:1345
Model-specific options for TTS generation
optional speed: number;Defined in: packages/typescript/ai/src/types.ts:1343
The speed of the generated audio (0.25 to 4.0)
text: string;Defined in: packages/typescript/ai/src/types.ts:1337
The text to convert to speech
optional voice: string;Defined in: packages/typescript/ai/src/types.ts:1339
The voice to use for generation