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