UNPKG

@pr0gramm/fluester

Version:

Node.js bindings for OpenAI's Whisper. Optimized for CPU.

18 lines (17 loc) 569 B
export interface ConvertOptions { } /** * Converts a file to a file that whisper.cpp can work with. * * @param inputFile Any input file that ffmpeg supports. That means almost any audio or video file. * @param outputFile * @example * ``` * const inputFile = "..."; * const outputFile = "output.wav"; * await convertFileToProcessableFile(inputFile, outputFile); * // ... * await client.detectLanguage(outputFile); ``` */ export declare function convertFileToProcessableFile(inputFile: string, outputFile: string, _options?: ConvertOptions): Promise<void>;