Skip to main content

No project description provided

Project description

nonebot-plugin-bertvits2

✨ bertVits2 语音合成插件 ✨

介绍

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

安装

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

1. bertvits2安装

  • 下载bertvits22.0.1 release(包括release的UI文件)
  • 环境安装
  • bertvits2server_fastapi.py替换为本项目中的server_fastapi.py
  • 运行server_fastapi.py,第一次运行默认退出,生成config.yml文件,并按文件说明对server属性进行配置
  • 运行server_fastapi.py

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

使用

  • 语音人物列表 : 查看当前bertvits2已加载模型人物
  • 刷新人物列表 : 刷新当前bertvits2已加载模型人物
  • xxx说xxxx : bertVits语音合成,前为人物名,后为要说的话。
  • xxx中文/日语/英语说xxxx :同上,指定目标语言

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_bertvits2-0.1.3.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_bertvits2-0.1.3-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_bertvits2-0.1.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_bertvits2-0.1.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.4 Windows/10

File hashes

Hashes for nonebot_plugin_bertvits2-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ef1741d04ca1deeeac9c94e814ca1c620df21bc69e317cadebbe11f7ffd6b3df
MD5 eac561e2802103d6489aad6b5df85b48
BLAKE2b-256 a61fae773e45a1443fccdccf74bde3908b3ccb96f3dd220ed8bd0fb836cb4f71

See more details on using hashes here.

File details

Details for the file nonebot_plugin_bertvits2-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_bertvits2-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae3147c67306199f0f3a6485b8f14e2b74837d75f835944d4f8dac30a3ec16df
MD5 08a15df3f0270f008eeeb2dd44d6a44d
BLAKE2b-256 ca9263649b266825bcccd9ad2ab02c6a8511d96baf7092c6fa40d0c65bbbdd76

See more details on using hashes here.

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