/** * adapters/kokoro/media.ts — Audio transcription via Whisper CLI. * * Transport-agnostic: only handles local audio files. * Downloading media from WhatsApp/Telegram stays in per-project code. */ /** Absolute path to the Whisper CLI binary. */ export declare const WHISPER_BIN: string; /** Whisper model (overridable via env). */ export declare const WHISPER_MODEL: string; /** * Map a MIME type to a sensible file extension for images. */ export declare function mimetypeToExt(mimetype: string | null | undefined): string; /** * Map a MIME type to a sensible file extension for documents. */ export declare function mimetypeToDocExt(mimetype: string | null | undefined): string; /** * Transcribe a local audio file using the Whisper CLI. * * @param audioPath - Absolute path to the audio file (WAV, OGG, MP3, etc.) * @param label - Label prefix for the transcript (e.g. "[Voice note]" or "[Audio]") * @returns Formatted transcript string, or null on failure. */ export declare function transcribeAudio(audioPath: string, label?: string): Promise; /** * Split text into chunks suitable for sequential TTS voice notes. * Splits at paragraph breaks, then sentence boundaries, then commas, * then word boundaries. Guarantees no chunk exceeds maxChars. */ export declare function splitIntoChunks(text: string, maxChars?: number): string[]; //# sourceMappingURL=media.d.ts.map