点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1981 requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://127.0.0.1:9880/?text=%E4%BD%A0%E5%A5%BD%E5%95

171.107* Posted at: 2 days ago 👁18

404 Client Error: Not Found for url: http://127.0.0.1:9880/?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.&text_language=zh&extra=pyvideotrans&ostype=win32&refer_wav_path=33.wav&prompt_text=Ryan+Schrader+the+tackle+and+then+a+little+free+throw&prompt_language=en:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 291, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_gptsovits.py", line 112, in _item_task
File "videotrans\tts\_gptsovits.py", line 90, in _run
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://127.0.0.1:9880/?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.&text_language=zh&extra=pyvideotrans&ostype=win32&refer_wav_path=33.wav&prompt_text=Ryan+Schrader+the+tackle+and+then+a+little+free+throw&prompt_language=en


=
system:Windows-10-10.0.19045-SP0
version:v3.89
frozen:True
language:zh
root_dir:H:/win-pyvideotrans-3.89

1 Replies

此错误表明 pyVideoTrans 无法连接到您本地部署的 GPT-SoVITS 语音克隆服务。错误代码 404 意味着请求的地址或端口不存在。

请按以下步骤排查:

  1. 确认 GPT-SoVITS 服务已启动并运行

    • 检查您是否已正确启动 GPT-SoVITS 项目。通常启动命令类似 python api.py
    • 确保服务启动后,在浏览器中访问 http://127.0.0.1:9880 能看到正常的页面或接口信息,而不是 404 错误。
  2. 检查 pyVideoTrans 中的配置

    • 在 pyVideoTrans 主界面,点击“设置更多参数”。
    • 在“配音角色”设置中,确认您选择的角色类型是“Clone”,并且其对应的“地址”字段是否正确填写为 http://127.0.0.1:9880(与您启动的 GPT-SoVITS 服务地址和端口完全一致)。
  3. 验证 GPT-SoVITS 接口

    • GPT-SoVITS 的默认接口路径可能不是根目录 (/)。请查阅您使用的 GPT-SoVITS 版本的文档,确认其语音合成接口的具体路径(例如可能是 /tts/generate)。
    • 在 pyVideoTrans 的“配音角色”设置中,将“地址”修改为完整的接口 URL,例如 http://127.0.0.1:9880/tts
  4. 检查防火墙或网络设置

    • 确保 Windows 防火墙或第三方安全软件没有阻止 127.0.0.1:9880 端口的本地连接。

如果以上步骤无法解决,请提供:

  • 您启动 GPT-SoVITS 服务时的命令行输出截图。
  • pyVideoTrans 中“配音角色”设置页面的截图。
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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions