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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 723d2bfe21d6fefbca88c145120242f983e70a2af6449540097d38468a487888 |
|
MD5 | fb1f0a6128edc5e656e7350e848728a8 |
|
BLAKE2b-256 | 0aff9335ee31fda162d812629b95930ead34c8a27f12d6fb53f31acb5af7888c |
Close
Hashes for nonebot_plugin_tts_gal-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e04b0759e6e777c6a6243cb762967a123d8a5bf3ac399b12b0ec73cf98995a14 |
|
MD5 | 23d2fe4b6a23ef6b8a98fcaccd746d42 |
|
BLAKE2b-256 | 4d2c62c45896c234d16a611132bd150ba2253406871cadf0df05cc2d26eff88e |