Skip to main content

No project description provided

Project description

nonebot

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|亚托莉

今后

添加更多的模型

感谢

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_tts_gal-0.1.1.tar.gz (25.5 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_tts_gal-0.1.1-py3-none-any.whl (29.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page