/** * Voice message transcription using OpenAI Whisper API * * Transcribes audio buffers to text using the OpenAI audio transcription endpoint. * Uses native fetch + FormData (Node 18+), no additional npm dependencies required. * * @module voice-transcriber */ export interface TranscribeOptions { /** OpenAI API key */ apiKey: string; /** Whisper model to use (default: "whisper-1") */ model?: string; /** Language hint for better accuracy (ISO 639-1, e.g., "en") */ language?: string; } export interface TranscribeResult { /** The transcribed text */ text: string; } /** * Transcribe an audio buffer using the OpenAI Whisper API * * @param audioBuffer - The audio file contents as a Buffer * @param filename - Original filename (used for content-type detection) * @param options - Transcription options including API key and model * @returns The transcription result with text * @throws Error if the API call fails */ export declare function transcribeAudio(audioBuffer: Buffer, filename: string, options: TranscribeOptions): Promise; //# sourceMappingURL=voice-transcriber.d.ts.map