/** * Whisper.cpp transcriber provider. * * Shells out to the `whisper-cpp` binary (install via `brew install whisper-cpp`). * Extracts audio to 16kHz mono WAV via ffmpeg, runs whisper.cpp with JSON output, * and parses word-level timestamps. * * whisper.cpp output format (--output-json-full): * { * "result": { "language": "en" }, * "transcription": [ * { * "timestamps": { "from": "00:00:00,000", "to": "00:00:03,400" }, * "offsets": { "from": 0, "to": 3400 }, * "text": " Hello world.", * "tokens": [ * { "offsets": { "from": 0, "to": 400 }, "text": " Hello", ... }, * ... * ] * } * ] * } * * Offsets are in milliseconds from the start of the source. */ import type { TranscriberProvider, TranscribeOptions, TranscribeResult } from '../types.js'; export declare class WhisperCppProvider implements TranscriberProvider { readonly id = "whisper-cpp"; assertAvailable(): Promise; transcribe(file: string, options?: TranscribeOptions): Promise; } //# sourceMappingURL=whisper-cpp.d.ts.map