We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc5ded7 commit 90db0deCopy full SHA for 90db0de
whisper/transcribe.py
@@ -214,6 +214,8 @@ def decode_with_fallback(segment: torch.Tensor) -> DecodingResult:
214
if (
215
no_speech_threshold is not None
216
and decode_result.no_speech_prob > no_speech_threshold
217
+ and logprob_threshold is not None
218
+ and decode_result.avg_logprob < logprob_threshold
219
):
220
needs_fallback = False # silence
221
if not needs_fallback:
0 commit comments