From 89466f7b77b04ac3933a6560a70e1e66cac1f057 Mon Sep 17 00:00:00 2001 From: ianwh02 Date: Wed, 11 Mar 2026 16:48:23 +0000 Subject: [PATCH] Fix NoneType crash in _process_single when VAD filters all audio When VAD removes all speech from an audio chunk, transcriber.transcribe() returns (None, info). Calling list(None) raises TypeError. The _process_multi path already handles this case; this aligns _process_single to match. --- whisper_live/batch_inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper_live/batch_inference.py b/whisper_live/batch_inference.py index 0e74180..a15afb0 100644 --- a/whisper_live/batch_inference.py +++ b/whisper_live/batch_inference.py @@ -213,7 +213,7 @@ class BatchInferenceWorker: vad_parameters=req.vad_parameters if req.use_vad else None, ) # Materialize the generator into a list - req.result = list(result) + req.result = list(result) if result is not None else [] req.info = info except Exception as e: req.error = e