这个需要配合这个项目使用(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"]
]
Metadata
Release files for nonebot-plugin-diffsinger 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot-plugin-diffsinger-0.1.13.tar.gz | 3.9 kB | Without provenance | Details for nonebot-plugin-diffsinger-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_diffsinger-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_diffsinger-0.1.13-py3-none-any.whl |
Total release size: 9.1 kB
Release files / nonebot-plugin-diffsinger-0.1.13.tar.gz
| Download URL | nonebot-plugin-diffsinger-0.1.13.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3b69982633998794c4de88882de13bbcdf622d94f5976cecaeddc601039f08e
|
|
BLAKE2b-256 checksum How to use checksums |
f874da96fdb18c154e3fd156ba00ed19d94c84c20b0476b331486059ae97fefd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / nonebot_plugin_diffsinger-0.1.13-py3-none-any.whl
| Download URL | nonebot_plugin_diffsinger-0.1.13-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9adfb8188d313a2457e19ed43bf9ed53369892ad32a02e333141ffad87b47f7
|
|
BLAKE2b-256 checksum How to use checksums |
2107476e1048a084838ff9f1b20b5f6a3ef7b41014b5a80483f009ebe9893585
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for nonebot-plugin-diffsinger 0.1.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.