Open History to see the last commit
Interface: TTSOptions<TProviderOptions>#
Defined in: types.ts:891
Options for text-to-speech generation. These are the common options supported across providers.
Type Parameters#
TProviderOptions#
TProviderOptions extends object = object
Properties#
format?#
optional format: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
Defined in: types.ts:899
The output audio format
model#
model: string;
Defined in: types.ts:893
The model to use for TTS generation
modelOptions?#
optional modelOptions: TProviderOptions;
Defined in: types.ts:903
Model-specific options for TTS generation
speed?#
optional speed: number;
Defined in: types.ts:901
The speed of the generated audio (0.25 to 4.0)
text#
text: string;
Defined in: types.ts:895
The text to convert to speech
voice?#
optional voice: string;
Defined in: types.ts:897
The voice to use for generation