From 4f928c1f83633c136aedeefadb6b62694f22032a Mon Sep 17 00:00:00 2001 From: ADITYA SUNIL BIRANJE Date: Wed, 15 Jul 2026 17:28:29 +0530 Subject: [PATCH] whisper: align no_speech fallback logic with upstream --- whisper/mlx_whisper/transcribe.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/whisper/mlx_whisper/transcribe.py b/whisper/mlx_whisper/transcribe.py index bced16a58..a410ab39d 100644 --- a/whisper/mlx_whisper/transcribe.py +++ b/whisper/mlx_whisper/transcribe.py @@ -237,6 +237,8 @@ def decode_with_fallback(segment: mx.array) -> DecodingResult: if ( no_speech_threshold is not None and decode_result.no_speech_prob > no_speech_threshold + and logprob_threshold is not None + and decode_result.avg_logprob < logprob_threshold ): needs_fallback = False # silence if not needs_fallback: