Defined in: packages/typescript/ai/src/types.ts:1402
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";optional format: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";Defined in: packages/typescript/ai/src/types.ts:1410
The output audio format
logger: InternalLogger;logger: InternalLogger;Defined in: packages/typescript/ai/src/types.ts:1420
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;model: string;Defined in: packages/typescript/ai/src/types.ts:1404
The model to use for TTS generation
optional modelOptions: TProviderOptions;optional modelOptions: TProviderOptions;Defined in: packages/typescript/ai/src/types.ts:1414
Model-specific options for TTS generation
optional speed: number;optional speed: number;Defined in: packages/typescript/ai/src/types.ts:1412
The speed of the generated audio (0.25 to 4.0)
text: string;text: string;Defined in: packages/typescript/ai/src/types.ts:1406
The text to convert to speech
optional voice: string;optional voice: string;Defined in: packages/typescript/ai/src/types.ts:1408
The voice to use for generation