export type TtsLanguage = "en" | "fr"; export interface TtsVoice { id: string; label: string; lang: string; } export interface SynthesizeOptions { voice?: string; speed?: number; language?: TtsLanguage; } export interface SynthesizedAudio { audio: Buffer; format: "wav" | "mp3"; sampleRate: number; } export interface TtsEngine { readonly id: string; readonly supportedLanguages: readonly TtsLanguage[]; isAvailable(): Promise; listVoices(): Promise; synthesize(text: string, opts?: SynthesizeOptions): Promise; } export declare class TtsUnsupportedLanguageError extends Error { readonly language: TtsLanguage; readonly engine: string; constructor(language: TtsLanguage, engine: string); } //# sourceMappingURL=types.d.ts.map