用DiffSinger让bot唱歌
Project description
这个需要配合这个项目使用(DiffSingerMiniEngine
怎么搭? 我只在windows上跑的,欢迎PR()
python -m venv ds
ds\Scripts\activate
git clone https://github.com/zhzhongshi/DiffSingerMiniEngine
cd DiffSingerMiniEngine
# 从release里把模型下下来解压丢进去(
pip install -r requirememts.txt -U
python server.py
然后搭建nb,从nb里把插件跑起来 我默认你会用nb-cli
nb plugin install nonebot-plugin-diffsinger
插件会自动添加到你pyproject.toml里面
你要是打算用pip安装的话
pip install nonebot-plugin-diffsinger
别忘了把"nonebot-plugin-diffsinger"加到pyproject.toml里面的"plugins"里面
配置
DS_URL="http://127.0.0.1:9266/" #后端的地址
DS_SPEEDUP=200 #后端的推理速度,建议10-255
测试指令
/diffsinger 120~[
[60,2,"AP"],
[57,2,"ba"],
[59,2,"ni"],
[60,2,"peng"],
[64,2,"zai"],
[62,2,"shou"],
[60,2,"+"],
[62,8,"shang"],
[60,4,"AP"],
[57,2,"he"],
[59,2,"qi"],
[60,12,"le"],
[59,4,"shou"],
[55,16,"zhang"],
[60,4,"AP"]
]|120~[
[60,4,"dao"],
[62,4,"lai"],
[64,4,"mi"],
[65,4,"fa"],
[67,4,"sao"],
[69,4,"la"],
[71,4,"xi"]
]|90~[
[60,4,"dao"],
[62,4,"lai"],
[64,4,"mi"],
[65,4,"fa"],
[67,4,"sao"],
[69,4,"la"],
[71,4,"xi"]
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_diffsinger-0.1.11.tar.gz.
File metadata
- Download URL: nonebot_plugin_diffsinger-0.1.11.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d112b74b9fc7c0c36967937273c7690fe59f1734ebf2bebce7a2b620487a0a7
|
|
| MD5 |
51eaa015db9afe08e2715f73800660f6
|
|
| BLAKE2b-256 |
1b63c7ebd0bed92f6a6dfd7dffce1eb8fd70261da07ced49af1fd86052a1da32
|
File details
Details for the file nonebot_plugin_diffsinger-0.1.11-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_diffsinger-0.1.11-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7338098fee7bcc0d45b86c7e022418ef3dbcd8e159c01c22b62a1a7978876094
|
|
| MD5 |
e790e6203c8818d1b6f29ac3297b5389
|
|
| BLAKE2b-256 |
ac1e9815ad02ac982d8c2723578766fa30c340e112bb5db1ce664194d73c3f13
|