jiangyuxiaoxiao / nonebot-plugin-bertvits2

6 stars 0 forks source link
# nonebot-plugin-bertvits2 _✨ bertVits2 语音合成插件 ✨_

介绍

bertvits2的nonebot2插件,直接对接bertvits2项目的自带api。

安装

由于bertvits2语音合成需要较长的时间,尤其是cpu推理时。因此不提供插件直接推理的实现,否则会产生较长时间的卡顿。本插件依赖于bertvits2本体的api服务。 该项目的api服务实现亦由本作者维护,因此一般来说,当插件更新时同步更新bertvits2至最新release即可。

1. bertvits2安装

2. 插件安装

2.1 使用 nb-cli 安装

nb plugin install nonebot-plugin-bertvits2

2.2 使用pip安装

pip install nonebot-plugin-bertvits2

3.配置

本插件需要在 nonebot2 项目的.env文件中添加下表中的配置

配置项 必填 默认值 说明
bertvits_host "http://127.0.0.1" bertVits api的host
bertvits_port 5000 bertVits api的port
bertvits_auto_translate false 是否使用bertVits的机翻,开启需要百度api,详见bertVits的config.yml

使用