diff --git a/whisper/transcribe.py b/whisper/transcribe.py index 1c075a201..c228800b6 100644 --- a/whisper/transcribe.py +++ b/whisper/transcribe.py @@ -208,6 +208,7 @@ def decode_with_fallback(segment: torch.Tensor) -> DecodingResult: if ( no_speech_threshold is not None and decode_result.no_speech_prob > no_speech_threshold + and decode_result.avg_logprob < logprob_threshold ): needs_fallback = False # silence if not needs_fallback: