openai-whisper-js
Version:
openai-whisper-js is a Node.js wrapper for the OpenAI Whisper library, enabling seamless audio transcription using Whisper models. This package simplifies the process of interacting with Whisper by providing a JavaScript interface to execute transcription
12 lines (11 loc) • 340 B
TypeScript
export interface ITranscribeOptions {
modelName?: 'tiny' | 'base' | 'small' | 'medium' | 'large' | 'turbo' | 'large-v3';
audio: string;
debug?: boolean;
}
declare class Whisper {
private mappingArgs;
transcribe(options?: ITranscribeOptions): Promise<unknown>;
}
declare const _default: Whisper;
export default _default;