-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
no_speech_probablity #30777
Comments
Hey @rizwanishaq, you can simply add the outputs = model.generate(
input_features, output_scores=True, return_dict_in_generate=True, max_new_tokens=128, no_speech_threshold=0.2
) Let me know if that works! |
Hey @ylacombe I get this warning "Audio input consists of only 3000. Short-form transcription is activated.no_speech_threshold is set to 0.3, but will be ignored." |
Then it's related to a shortcoming of our Whisper implementation that we hope to fix soon: we're not applying some of the features used for long-form generation to short audios. We should be resolving this issue quite soon, I'll keep you up-to-date |
For reference, it was fixed by #29508! |
Print Output:
Originally posted by @sanchit-gandhi in #25138 (comment)
How we can get the no_speech_probablity with this code?
The text was updated successfully, but these errors were encountered: