From 6e1ed9fa4d0be2833b24145763be6777a38210ae Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sun, 10 May 2026 20:26:40 +0800 Subject: [PATCH] =?UTF-8?q?update:=E7=AE=80=E5=8C=96=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=EF=BC=9B=E9=BB=98=E8=AE=A4=E5=BC=80=E5=90=AF=E5=94=A4=E9=86=92?= =?UTF-8?q?=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 ++- .../test/wakeword_runtime/README.md | 37 +------------------ .../test/wakeword_runtime/config.json | 2 +- 3 files changed, 6 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index c5d58f2b..225766d9 100644 --- a/.gitignore +++ b/.gitignore @@ -186,4 +186,7 @@ uploadfile !main/manager-mobile/**/env/ !main/manager-mobile/**/.env* !main/manager-mobile/**/*.json -!main/xiaozhi-server/**/*.json \ No newline at end of file +!main/xiaozhi-server/**/*.json +main/xiaozhi-server/test/wakeword_runtime/models +main/xiaozhi-server/test/wakeword_runtime/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01 +sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.tar.bz2 diff --git a/main/xiaozhi-server/test/wakeword_runtime/README.md b/main/xiaozhi-server/test/wakeword_runtime/README.md index 261a65b6..c5d66064 100644 --- a/main/xiaozhi-server/test/wakeword_runtime/README.md +++ b/main/xiaozhi-server/test/wakeword_runtime/README.md @@ -121,6 +121,7 @@ wakeword_runtime/models/ 在 `main/xiaozhi-server/test` 目录执行: ```bash +pip install -r wakeword_runtime/requirements.txt python start_test_runtime.py ``` @@ -135,42 +136,6 @@ python start_test_runtime.py - 在运行终端按 `Ctrl+C` - 会同时停止静态页面服务、事件桥和唤醒词检测流程 -## 运行依赖 - -### 模型文件 - -模型目录至少需要这些文件: - -- `encoder.onnx` -- `decoder.onnx` -- `joiner.onnx` -- `tokens.txt` -- `keywords.txt` - -### Python 依赖 - -唤醒词服务依赖以下 Python 包: - -- `sherpa-onnx` -- `sounddevice` -- `pypinyin` - -**pip 安装(推荐)**: - -```bash -# 在 conda 环境中 -conda activate xiaozhi-esp32-server -cd main/xiaozhi-server/test/wakeword_runtime/ -pip install -r requirements.txt -``` - -> 如使用独立 conda 环境,可同时安装: -> ```bash -> conda create -n wakeword python=3.10 -y -> conda activate wakeword -> cd main/xiaozhi-server/test/wakeword_runtime/ -> pip install -r requirements.txt -> ``` ## 配置文件说明 diff --git a/main/xiaozhi-server/test/wakeword_runtime/config.json b/main/xiaozhi-server/test/wakeword_runtime/config.json index 5defa754..dabcb4ab 100644 --- a/main/xiaozhi-server/test/wakeword_runtime/config.json +++ b/main/xiaozhi-server/test/wakeword_runtime/config.json @@ -1,6 +1,6 @@ { "wakeword": { - "enabled": false + "enabled": true }, "model_dir": "models", "audio": {