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

120.244* Posted at: 2 hours ago 👁4

404 Client Error: Not Found for url: http://127.0.0.1:9880/tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.+&text_lang=zh&ref_audio_path=%E5%A4%A7%E5%A4%A7%E5%A4%A7.wav&prompt_text=%E4%B8%8D%E7%BB%99%E6%98%AF%E5%90%A7%EF%BC%8C%E4%B8%8D%E7%BB%99%E5%88%AB%E6%80%AA%E6%88%91%E4%BB%AC%E4%B8%8D%E5%AE%A2%E6%B0%94%EF%BC%81&prompt_lang=zh&speed_factor=1.0:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 284, in run
File "videotrans\tts\_base.py", line 179, in run
File "videotrans\tts\_base.py", line 208, in _local_mul_thread
File "videotrans\tts\_gptsovits.py", line 98, in _item_task
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/tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.+&text_lang=zh&ref_audio_path=%E5%A4%A7%E5%A4%A7%E5%A4%A7.wav&prompt_text=%E4%B8%8D%E7%BB%99%E6%98%AF%E5%90%A7%EF%BC%8C%E4%B8%8D%E7%BB%99%E5%88%AB%E6%80%AA%E6%88%91%E4%BB%AC%E4%B8%8D%E5%AE%A2%E6%B0%94%EF%BC%81&prompt_lang=zh&speed_factor=1.0


=
system:Windows-10-10.0.26200-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/A

1 Replies

这个错误表明 pyVideoTrans 在尝试连接本地部署的 GPT-SoVITS 语音克隆服务时,收到了 404 错误(未找到)。这意味着软件无法访问到您本地运行的 GPT-SoVITS 服务。

请按以下步骤排查:

  1. 确认 GPT-SoVITS 服务已启动并运行在正确端口

    • 检查您是否已经成功启动了 GPT-SoVITS 的 WebUI 服务。
    • 默认情况下,GPT-SoVITS 服务地址是 http://127.0.0.1:9880。请确保它正在运行,并且端口号(9880)与 pyVideoTrans 中配置的地址一致。
  2. 检查 pyVideoTrans 中的 GPT-SoVITS 配置

    • 在 pyVideoTrans 主界面,点击菜单栏的 工具 -> GPT-SoVITS
    • 在弹出的窗口中,确认 API地址 是否正确设置为 http://127.0.0.1:9880(或您自定义的地址和端口)。
    • 同时,请确保 参考音频 文件路径正确,并且该音频文件是有效的 WAV 格式。
  3. 验证 GPT-SoVITS 服务是否可访问

    • 打开您的浏览器,在地址栏输入 http://127.0.0.1:9880 并访问。
    • 如果能看到 GPT-SoVITS 的 Web 界面,说明服务运行正常。
    • 如果无法访问,请检查 GPT-SoVITS 的启动日志,确认服务是否成功启动,以及是否绑定到了正确的 IP 和端口。
  4. 检查防火墙或安全软件

    • 临时关闭 Windows 防火墙或任何第三方安全软件,看是否能解决问题。有时它们会阻止本地服务间的通信。
  5. 查看 GPT-SoVITS 服务日志

    • 如果服务已启动但 pyVideoTrans 仍无法连接,请查看 GPT-SoVITS 的启动命令行窗口或日志文件,看是否有错误信息。

根据错误日志中的 URL (http://127.0.0.1:9880/tts?...),问题核心是 pyVideoTrans 向这个地址发送了请求,但该地址没有响应(404)。因此,请首先确保 http://127.0.0.1:9880 这个服务是存在的且正在运行。

请查看更多参考文档:

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