mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-03 02:11:48 +00:00
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:
parent
fd4f229eab
commit
a15fa85248
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue