/** * Browser Speech Synthesis API adapter * * Uses the Web Speech API (SpeechSynthesis) available in most modern browsers. * No download required, works immediately. */ import type { InitState, OnProgress } from '../../core/types.js'; import type { BrowserSynthesisTTSOptions, TTSAdapter, TTSCapabilities, TTSOptions, TTSVoice } from './types.js'; /** * Browser Speech Synthesis adapter */ export declare class BrowserSynthesisTTSAdapter implements TTSAdapter { readonly type: "browser-synthesis"; private _initState; private synthesis; private options; private voices; private currentUtterance; private startListeners; private endListeners; private errorListeners; private boundaryListeners; constructor(options?: BrowserSynthesisTTSOptions); get initState(): InitState; ensureInitialized(_onProgress?: OnProgress): Promise; private loadVoices; getCapabilities(): TTSCapabilities; getVoices(): TTSVoice[]; private findVoice; speak(text: string, options?: TTSOptions): Promise; stop(): void; pause(): void; resume(): void; isSpeaking(): boolean; isPaused(): boolean; onStart(callback: () => void): () => void; onEnd(callback: () => void): () => void; onError(callback: (error: Error) => void): () => void; onBoundary(callback: (charIndex: number, charLength: number) => void): () => void; dispose(): Promise; } //# sourceMappingURL=browser-synthesis.d.ts.map