/** * Whisper.cpp adapter using @remotion/whisper-web * * Uses whisper.cpp compiled to WASM for high-accuracy speech recognition. * More stable than transformers.js implementation. */ import type { InitState, OnProgress } from '../../core/types.js'; import type { STTAdapter, STTCapabilities, STTOptions, STTResult, WhisperCppSTTOptions } from './types.js'; /** * Whisper.cpp adapter for high-accuracy speech recognition */ export declare class WhisperCppSTTAdapter implements STTAdapter { readonly type: "whisper-cpp"; private _initState; private options; private _isListening; private mediaRecorder; private audioChunks; private stream; private resultListeners; private errorListeners; private startListeners; private endListeners; private whisperWeb; private modelDownloaded; private processingPromise; private processingResolve; constructor(options?: Partial); get initState(): InitState; private get model(); ensureInitialized(onProgress?: OnProgress): Promise; private importWhisperWeb; getCapabilities(): STTCapabilities; start(_options?: STTOptions): Promise; private getSupportedMimeType; private processRecording; stop(): Promise; abort(): void; isListening(): boolean; onResult(callback: (result: STTResult) => void): () => void; onError(callback: (error: Error) => void): () => void; onStart(callback: () => void): () => void; onEnd(callback: () => void): () => void; dispose(): Promise; } //# sourceMappingURL=whisper-cpp.d.ts.map