Fix WhisperNoSpeechDetection when input is full silence
What does this PR do?
@cifkao found an edge case that happens when the input of Whisper.generate is a full silence. This is a simple tentative PR.
cc @sanchit-gandhi
Fixes #29036
I want to add a test, but I realized most of the slow tests of Whisper were already failing, independently of this PR. cc @sanchit-gandhi
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
Seems to work for me!
Do you need a review @ylacombe ?
I do, thanks !