Skip to content

Commit 59c1f07

Browse files
committed
docs: 更新tts部署文档
1 parent 90dd020 commit 59c1f07

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

docs/AIDeployment.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1. 下载 [模型及配置文件](https://huggingface.co/MistEO/Pallas-Bot/tree/main/so-vits-svc/4.0) 放到 `resource/sing/models/XXX/` 文件夹里
1010

1111
- 这里的 `XXX` 换成资源文件夹的名字,例如 `pallas`, `amiya` 等,需要对应 `config.json` 里的 `spk` 字段
12-
- 具体路径结构请参考 [path_structure.txt](https://github.com/MistEO/Pallas-Bot/blob/master/resource/sing/models/path_structure.txt)
12+
- 具体路径结构请参考 [path_structure.txt](../resource/sing/models/path_structure.txt)
1313
-`src/plugins/sing/__init__.py` 修改 `svc_speakers` 对应上面的资源文件夹名。(也可以在 `.env` 里改)
1414

1515
2. 更新 git 子模块
@@ -38,10 +38,6 @@
3838
python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117
3939
```
4040
41-
## 画画
42-
43-
敬请期待
44-
4541
## Chat
4642
4743
1. 下载模型,参考 [原仓库说明](https://github.com/BlinkDL/ChatRWKV#%E4%B8%AD%E6%96%87%E6%A8%A1%E5%9E%8B),把文件放到 `resource/chat/models` 文件夹(只要是 `.pth` 都行,根据你的显存和需求选择)
@@ -70,11 +66,17 @@
7066
7167
## TTS
7268
73-
**仍在开发中,有能力的可以自己试着先接入玩玩**
74-
75-
1. 下载 [模型资源](https://huggingface.co/MistEO/Pallas-Bot/tree/main/paddlespeech/tts),放入 `resource/tts/models` 文件夹中
69+
1. 下载 [模型资源](https://huggingface.co/MistEO/Pallas-Bot/tree/main/paddlespeech/tts) common.zip 和 pallas_cn.zip。解压放入 `resource/tts/models` 文件夹中
70+
- 具体路径结构请参考 [path_structure.txt](../resource/sing/models/path_structure.txt)
71+
- `vocoder` 下有两个声码器,`pwgan_aishell3` 快,`wavernn_csmsc` 慢很多效果好一点,可以自行选择
7672
2. 安装依赖
7773
74+
- CPU 版本(合成耗时 20s 左右)
75+
76+
```
77+
python3 -m pip install paddlepaddle-gpu==2.4.2.post117 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
78+
```
79+
7880
- GPU 版本(显存占用约 1.5G,合成耗时 1s 左右)
7981
8082
因为需要装 cudnn,推荐用 conda 安装。没有 conda 的可以自己去搜教程 cudnn 的安装方法,或者参考 [飞桨官方安装教程](https://www.paddlepaddle.org.cn/documentation/docs/zh/install/pip/linux-pip.html)
@@ -83,8 +85,6 @@
8385
conda install paddlepaddle-gpu==2.4.2 cudatoolkit=11.7 cudnn -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge
8486
```
8587
86-
- CPU 版本(合成耗时 20s 左右)
88+
## 画画
8789
88-
```
89-
python3 -m pip install paddlepaddle-gpu==2.4.2.post117 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
90-
```
90+
敬请期待
+13-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
resource/tts/models
2-
├── vocoder
3-
│ ├── pwgan_aishell3.pdiparams
4-
│ └── pwgan_aishell3.pdmodel
5-
├── pallas.pdiparams
6-
├── pallas.pdmodel
2+
├── nltk_data
3+
│ └── corpora
4+
│ └── cmudict
5+
│ ├── cmudict
6+
│ └── README
7+
├── pallas_cn.pdiparams
8+
├── pallas_cn.pdmodel
79
├── path_structure.txt
8-
└── phone_id_map.txt
10+
├── phone_id_map.txt
11+
└── vocoder
12+
├── pwgan_aishell3.pdiparams
13+
├── pwgan_aishell3.pdmodel
14+
├── wavernn_csmsc.pdiparams
15+
└── wavernn_csmsc.pdmodel

0 commit comments

Comments
 (0)