Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when using whisper-node library for audio transcription in NestJS project #41

Open
Vahe-Vardanyan opened this issue Feb 19, 2024 · 0 comments

Comments

@Vahe-Vardanyan
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant