kadirnar / whisper-plus

WhisperPlus: Faster, Smarter, and More Capable 🚀
Apache License 2.0
1.67k stars 133 forks source link

language as a parameter support #118

Open risedangel opened 1 month ago

risedangel commented 1 month ago

Can you add support so that we can add language as a parameter ? I am trying to use the diarization code given at the readme file and receiving the following error. Due to a bug fix in https://github.com/huggingface/transformers/pull/28687 transcription using a multilingual Whisper will default to language detection followed by transcription instead of translation to English.This might be a breaking change for your use case. If you want to instead always translate your audio to English, make sure to pass language='en'.

kadirnar commented 1 month ago

Which pipeline are you using?

risedangel commented 1 month ago

I am using the speaker diarization code samole given in the readme file, but i am using it with whisper large v3 model

kadirnar commented 1 month ago

I will add lang parameter support tomorrow.

risedangel commented 1 month ago

Thank you for your efforts i am waiting to hear from you