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

How to use the language parameter of WhisperParams #43

Open
martinlexow opened this issue Nov 12, 2024 · 1 comment
Open

How to use the language parameter of WhisperParams #43

martinlexow opened this issue Nov 12, 2024 · 1 comment

Comments

@martinlexow
Copy link

martinlexow commented Nov 12, 2024

This is more of a question than an issue: How do I use the language parameter correctly, and what should/does it do?

Unfortunately, I can’t find an explanation for it in the documentation.

I had assumed that by setting a language, I could specify the language in which my audio file was recorded (i.e. to improve the overall transcription quality). However, during my tests, I found that the parameter also translates transcripts into the specified language.

I’d really appreciate any explanation you could share! 🙏

@martinlexow
Copy link
Author

After looking at the whisper.cpp repo I think it’s:

-l LANG, --language LANG [en] spoken language ('auto' for auto-detect)

So, if the model translates the audio file, this would be an unwanted side effect?

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