import { TTS } from '../../agents/providers.js'; import type { OpenAITTSModel } from './models.js'; /** Options for {@link OpenAITTS}. */ export type OpenAITTSOptions = { /** OpenAI API key. Defaults to the `OPENAI_API_KEY` environment variable. */ apiKey?: string | null; /** Voice id. Default `'ash'`. */ voice?: string; /** TTS model id. Default `'gpt-4o-mini-tts'`. */ model?: OpenAITTSModel | string; /** Output audio sample rate in Hz. Default `24000`. */ sampleRate?: number; /** Playback speed multiplier. Default `null` (provider default, 1.0). */ speed?: number | null; /** Stream audio as it is synthesized. Default `true`. */ stream?: boolean; }; declare class OpenAITTSImpl extends TTS { static readonly displayName = "OpenAITTS"; _providerName: string; apiKey: string | null; voiceId: string; voice: string; model: string; speed: number | null; ttsStream: boolean; constructor(opts?: OpenAITTSOptions); getRuntimeConfig(): Record; } export type OpenAITTS = OpenAITTSImpl; /** OpenAI text-to-speech (TTS) synthesizer. */ export declare const OpenAITTS: (opts?: OpenAITTSOptions) => OpenAITTS; export {};