No project description provided
Project description
nonebot_plugin_tts_gal
基于nonebot和vits的部分gal角色的语音合成插件
前言
本人python比较菜,因此可能有些地方写的比较屎,还望轻喷
安装
pip安装
pip install nonebot_plugin_tts_gal
nb-cli安装
nb plugin install nonebot-plugin-tts-gal
资源文件
下载data
文件夹,并放入在bot的运行目录下
相关依赖
ffmpeg的安装
Windows
在ffmpeg官网下载ffmpeg下载,选择对应的版本,下载后解压,并将位于bin
目录添加到环境变量中
其他具体细节可自行搜索
Linux
Ubuntu下
apt-get install ffmpeg
或者下载源码安装(具体可搜索相关教程)
配置项
请在使用的配置文件(.env.*)加入
auto_delete_voice = True
用于是否自动删除生成的语音文件,如不想删除,可改为
auto_delete_voice = False
使用
群聊和私聊仅有细微差别,其中下面语句中,name
为合成语音的角色,text
为转语音的文本内容(会自动转为日文,故也可以输入中文等其他语言)
群聊
@机器人 [name]说[text]
私聊
[name]说[text]
目前name
有
- 宁宁|绫地宁宁
- 因幡爱瑠|爱瑠
- 朝武芳乃|芳乃
- 常陸茉子|茉子
- 丛雨|幼刀
- 鞍馬小春|鞍马小春|小春
- 在原七海|七海
- ATRI|atri|亚托莉
今后
添加更多的模型
感谢
-
部分代码参考自nonebot-plugin-petpet
-
CjangCjengh:g2p转换,适用于日语调形标注的符号文件及分享的柚子社多人模型
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
Close
Hashes for nonebot_plugin_tts_gal-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd50cb62168672e43d2f360306a580123bb04968968ea9d6978400a82d00c4f6 |
|
MD5 | acd6355a380c991da60235d3170d8fbe |
|
BLAKE2b-256 | 5a02741ebc9134321fb303515d7aab3669361b97769d0d4d24094cd446f9bd9e |
Close
Hashes for nonebot_plugin_tts_gal-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b853a6dd8dcb9ba829d3d630d71f0e2a6093a4f55d0380e6b740c87a07064e10 |
|
MD5 | fda114b7f3a24cf46de097a85d5438cf |
|
BLAKE2b-256 | d2481c32d3be8312e5fe31ce376e3cbd3208bc39120e77263524012863fb0a20 |