Giter Site home page Giter Site logo

bert-vits2-speech's Introduction

Bert-VITS2 Speech

声明

  • 严禁将此项目用于一切违反《中华人民共和国宪法》,《中华人民共和国刑法》,《中华人民共和国治安管理处罚法》和《中华人民共和国民法典》之用途。
  • 严禁用于任何政治相关用途。

项目说明

  • 基于开源项目fishaudio/Bert-VITS2 2.1 实现
  • 去除所有训练相关代码,仅保留onnx模型推理能力,重写调用推理代码
  • 重写WEBUI页面,剔除切分生成功能,生成时自动切分,支持多语言多段落混合输入
  • WEBUI支持一键获取TTS API地址

运行环境

  • python == 3.10

安装说明

pip install -r requirements.txt

使用说明

下载中/日/英bert对应onnx模型,放入项目 onnx/Bert目录对应文件夹内 下载链接

Alt text

转换fishaudio/Bert-VITS2 2.1版本(仅适用2.1版本)训练后的模型pth文件为onnx,然后将onnx模型文件夹连同json文件放到onnx/models文件夹下。模型转换方法看下方。

Alt text

修改配置文件 config.json,修改 onnx_tts_models_chinese_mark 字段为模型内角色名称的中文标志字符

如 角色名称:刻晴(原神-中文), 中文标志字符:"中文"、角色名称:刻晴_ZH, 中文标志字符:"ZH"

Alt text

修改角色多语言映射文件 speakers_map.json,如果不指定,则在进行多语言输出时,仅使用中文角色进行推理

Alt text

可选择是否开启bert推理(默认启用),修改 config.json 文件 bert-enable配置项即可

训练模型转ONNX说明

(仅适用2.1版本)

运行 fishaudio/Bert-VITS2 2.1 项目根目录下的 export_onnx.py 进行导出。

界面截图

Alt text

Alt text

Alt text

Alt text

Alt text

References

最后,感谢Bert-VITS2项目组的努力与群里大佬们的答疑

bert-vits2-speech's People

Contributors

huahuahuage avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.