mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
在数字人文档里写清唤醒词模型的前置条件
模型文件不在仓库里,默认配置下缺模型只会打印一句唤醒词服务启动失败, 页面能开但麦克风采集起不来。digital-human 的 README、唤醒词专题文档 和 paddlespeech 部署文档三处都补上这个前置条件,并指向模型下载那一节。
This commit is contained in:
parent
43f30c06c1
commit
7af5630b2a
3 changed files with 5 additions and 1 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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端是否有输出日志
|
||||
|
||||
输出日志参考:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue