ChetanXpro / nodejs-whisper

NodeJS Bindings for Whisper - the CPU version of OpenAI's Whisper, as initially crafted in C++ by ggerganov.
https://npmjs.com/nodejs-whisper
MIT License
93 stars 22 forks source link

How can I pass the language flag #83

Closed AhabweEmmanuel closed 5 months ago

AhabweEmmanuel commented 6 months ago

Hi thanks for this great library.

I would like to pass the language for the transcription. Is this option available? I notice the large model tries to automatically detect the language but fails in the process. I would like to pass a language flag to inform whisper which language to use.

ChetanXpro commented 5 months ago

Hey, I will add an option to pass the language flag.

AhabweEmmanuel commented 5 months ago

Alright, thank you so much.

ChetanXpro commented 5 months ago

Added in this commit https://github.com/ChetanXpro/nodejs-whisper/commit/46fd9aedaae8f9790d2c4e69eae8b1dd2232ec6d