UNPKG

nwhisper

Version:

Native Node.js bindings for OpenAI's Whisper using whisper.cpp. High-performance local speech-to-text with custom model support.

18 lines 689 B
import type { ModelName } from './constants'; import type { Logger, WhisperOptions } from './types'; export interface IOptions { modelName?: ModelName; modelPath?: string; modelDir?: string; autoDownloadModelName?: ModelName; whisperOptions?: WhisperOptions; withCuda?: boolean; removeWavFileAfterTranscription?: boolean; logger?: Logger; } export declare function transcribe(filePath: string, options: IOptions): Promise<string>; /** * @deprecated Use `transcribe` instead. This function will be removed in a future version. */ export declare function nodewhisper(filePath: string, options: IOptions): Promise<string>; //# sourceMappingURL=index.d.ts.map