node-speech-recognition
Version:
Speech Recognition for Node.js
11 lines (10 loc) • 322 B
TypeScript
declare const MODELS_LIST: Record<string, string>;
export default class Whisper {
private model;
constructor();
init(modelName: keyof typeof MODELS_LIST): Promise<void>;
private assertModel;
transcribe(filePath: string, language?: string): Promise<any>;
disposeModel(): Promise<void>;
}
export {};