给唤醒词运行时补上 numpy 依赖

core/detector.py 和 core/microphone.py 在模块层直接 import numpy,
requirements.txt 里没有这一条。干净环境里照文档装完依赖就启动,
会报 ModuleNotFoundError,页面都开不起来。版本跟 xiaozhi-server 那份一样,
两个模块共用一个环境时不会冲突。
This commit is contained in:
hrz 2026-10-26 21:16:47 +08:00
parent ca8ff121d4
commit 43f30c06c1

View file

@ -1,3 +1,6 @@
sherpa-onnx==1.12.29
sounddevice>=0.4.4
pypinyin==0.55.0
# 唤醒词运行时在 core/detector.py、core/microphone.py 里直接用 numpy,
# 版本跟 main/xiaozhi-server/requirements.txt 一致,两个模块共用一个环境时不会冲突
numpy==1.26.4