From 7af5630b2a24c593be2966239cab6579211707f1 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Mon, 26 Oct 2026 21:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=95=B0=E5=AD=97=E4=BA=BA=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E9=87=8C=E5=86=99=E6=B8=85=E5=94=A4=E9=86=92=E8=AF=8D?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=9A=84=E5=89=8D=E7=BD=AE=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 模型文件不在仓库里,默认配置下缺模型只会打印一句唤醒词服务启动失败, 页面能开但麦克风采集起不来。digital-human 的 README、唤醒词专题文档 和 paddlespeech 部署文档三处都补上这个前置条件,并指向模型下载那一节。 --- docs/digital-human-wakeword.md | 2 +- docs/paddlespeech-deploy.md | 2 ++ main/digital-human/README.md | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/digital-human-wakeword.md b/docs/digital-human-wakeword.md index 613e61506..c36197a1e 100644 --- a/docs/digital-human-wakeword.md +++ b/docs/digital-human-wakeword.md @@ -194,7 +194,7 @@ python start.py ### 首次使用 -1. 准备 `models/` 目录下的模型文件和 `tokens.txt` +1. 先按上面「模型下载(必需)」那节把模型包下载解压,再按「配置模型文件」那节把模型放到 `models/` 目录,该目录下要有 `encoder.onnx`、`decoder.onnx`、`joiner.onnx` 和 `tokens.txt` 四个文件 2. 确认 `models/keywords.txt` 存在 3. 在 `digital-human` 目录运行 `python start.py` 4. 浏览器打开 `http://127.0.0.1:8006/index.html` diff --git a/docs/paddlespeech-deploy.md b/docs/paddlespeech-deploy.md index 7e094b028..30fc86ee6 100644 --- a/docs/paddlespeech-deploy.md +++ b/docs/paddlespeech-deploy.md @@ -91,6 +91,8 @@ TTS: ```py python app.py ``` +启动`main/digital-human`下的`python start.py`前,先按[唤醒词模型说明](./digital-human-wakeword.md)把模型下载并配置到`main/digital-human/wakeword_runtime/models/`,默认配置下缺模型只会打印「警告: 唤醒词服务启动失败」,页面能打开但麦克风采集起不来,音频收发是残的。 + 启动`main/digital-human`下的`python start.py`后,打开`http://127.0.0.1:8006/index.html`,测试连接和发送消息时paddlespeech端是否有输出日志 输出日志参考: diff --git a/main/digital-human/README.md b/main/digital-human/README.md index 26b41c369..9991081a4 100644 --- a/main/digital-human/README.md +++ b/main/digital-human/README.md @@ -16,6 +16,8 @@ digital-human 是独立的数字人测试模块,负责提供本地测试页面 pip install -r wakeword_runtime/requirements.txt ``` +唤醒词模型要另外下载:仓库里不带模型文件,默认配置(`wakeword_runtime/config.json` 里 `wakeword.enabled` 为 true)下,`wakeword_runtime/models/` 里没有模型文件时启动会打印「警告: 唤醒词服务启动失败」,页面能打开但麦克风采集起不来,音频收发是残的。模型下载地址和摆放位置见[唤醒词专题文档](../../docs/digital-human-wakeword.md)。 + 启动模块: ```bash