Open Vahe-Vardanyan opened 9 months ago
I'm encountering a TypeError while attempting to transcribe audio from a WAV file using the whisper-node library in my NestJS project. Here's my code snippet:
import whisper from 'whisper-node'; import path from 'path';
const filePath = path.join(__dirname, '..', 'uploads', 'output.wav'); const options = { modelName: 'base.en', whisperOptions: { language: 'auto', gen_file_txt: false, gen_file_subtitle: false, gen_file_vtt: false, word_timestamps: true, }, };
const transcript = await whisper(filePath, options);
I'm encountering a TypeError while attempting to transcribe audio from a WAV file using the whisper-node library in my NestJS project. Here's my code snippet:
import whisper from 'whisper-node'; import path from 'path';
const filePath = path.join(__dirname, '..', 'uploads', 'output.wav'); const options = { modelName: 'base.en', whisperOptions: { language: 'auto', gen_file_txt: false, gen_file_subtitle: false, gen_file_vtt: false, word_timestamps: true, }, };
const transcript = await whisper(filePath, options);