From a15fa8524843cf950ffda6a4d801276d59ab9c5d Mon Sep 17 00:00:00 2001 From: 0xbyt4 <35742124+0xbyt4@users.noreply.github.com> Date: Thu, 5 Mar 2026 21:35:50 +0300 Subject: [PATCH] fix: catch OSError on sounddevice import in voice_mode.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same PortAudio fix as tts_tool.py — sounddevice raises OSError when the native library is missing on CI runners. --- tools/voice_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/voice_mode.py b/tools/voice_mode.py index d4fd00f19b..bdf2c5353e 100644 --- a/tools/voice_mode.py +++ b/tools/voice_mode.py @@ -31,7 +31,7 @@ try: import numpy as np _HAS_AUDIO = True -except ImportError: +except (ImportError, OSError): sd = None # type: ignore[assignment] np = None # type: ignore[assignment] _HAS_AUDIO = False