interface TTSOptions {
    apiKey?: string;
    baseURL?: string;
    client?: OpenAI;
    instructions?: string;
    model: string;
    sampleRate?: number;
    speed: number;
    voice: TTSVoices;
}

Properties

apiKey?: string
baseURL?: string
client?: OpenAI
instructions?: string
model: string
sampleRate?: number

Sample rate of the provider's PCM output, in Hz. Defaults to 24000. Must be an integer of at least 10. The audio is not resampled.

speed: number
voice: TTSVoices