#3694 如何部署GPT-SoVITS

59.51* Posted at: 2 hours ago 👁6

如何部署GPT-SoVITS

1 Replies

部署 GPT-SoVITS 需要先独立运行其 API 服务,然后在 pyVideoTrans 中进行配置。

部署步骤:

  1. 部署 GPT-SoVITS 服务

    • 您需要从 GPT-SoVITS 的官方 GitHub 仓库(https://github.com/RVC-Boss/GPT-SoVITS)获取源码并部署。
    • 按照其项目文档的指引,启动其 WebUI 或 API 服务。通常 API 服务会运行在本地的一个端口上,例如 http://127.0.0.1:9880
  2. 在 pyVideoTrans 中配置

    • 启动 pyVideoTrans。
    • 在主界面的“配音渠道”下拉列表中,选择 GPT-SoVITS
    • 点击软件顶部的 菜单 -> 配音设置 -> GPT-SoVITS设置
    • 在弹出的设置窗口中,填写 GPT-SoVITS 服务的 API 地址(例如 http://127.0.0.1:9880)。
    • 保存配置。
  3. 使用声音克隆

    • 在配音角色中选择 clone
    • 软件会自动将原视频中对应时间段的语音片段作为参考音频发送给 GPT-SoVITS 服务,以克隆音色进行配音。

注意事项

  • 确保 GPT-SoVITS 的服务在后台正常运行,且 pyVideoTrans 能访问到其 API 地址。
  • 使用 clone 角色时,建议在“高级选项”中将“最短语音持续毫秒”设为 3000,“最长语音持续秒数”设为 10,以确保参考音频时长在 3-10 秒的理想范围内。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource