fix: catch OSError on sounddevice import in voice_mode.py

Same PortAudio fix as tts_tool.py — sounddevice raises OSError
when the native library is missing on CI runners.
This commit is contained in:
0xbyt4
2026-03-05 21:35:50 +03:00
parent fd4f229eab
commit a15fa85248

View File

@@ -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