#1922 requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://127.0.0.1:9874/tts?text=hello%2C+my+dear+frie

23.165* Posted at: 3 hours ago 👁5

404 Client Error: Not Found for url: http://127.0.0.1:9874/tts?text=hello%2C+my+dear+friend.+i+hope+your+every+day+is+beautiful+and+enjoyable%21&text_lang=en&ref_audio_path=1.wav&prompt_text=%E5%BE%88%E5%A4%9A%E8%80%81%E6%9D%BF%E8%BF%98%E4%B8%8D%E7%9F%A5%E9%81%93%E6%88%91%E4%BB%ACekong%E5%85%B7%E4%BD%93%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%9A%84%EF%BC%8C%E6%88%91%E4%BB%ACekong%E7%9A%84%E6%8A%A4%E8%82%A4%E5%93%81%E7%A0%94%E5%8F%91%E5%92%8C%E7%94%9F%E4%BA%A7%E5%B7%B2%E7%BB%8F23%E5%B9%B4%E4%BA%86&prompt_lang=zh&speed_factor=1.03:
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 115, in _item_task
File "videotrans\tts\_gptsovits.py", line 93, 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:9874/tts?text=hello%2C+my+dear+friend.+i+hope+your+every+day+is+beautiful+and+enjoyable%21&text_lang=en&ref_audio_path=1.wav&prompt_text=%E5%BE%88%E5%A4%9A%E8%80%81%E6%9D%BF%E8%BF%98%E4%B8%8D%E7%9F%A5%E9%81%93%E6%88%91%E4%BB%ACekong%E5%85%B7%E4%BD%93%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%9A%84%EF%BC%8C%E6%88%91%E4%BB%ACekong%E7%9A%84%E6%8A%A4%E8%82%A4%E5%93%81%E7%A0%94%E5%8F%91%E5%92%8C%E7%94%9F%E4%BA%A7%E5%B7%B2%E7%BB%8F23%E5%B9%B4%E4%BA%86&prompt_lang=zh&speed_factor=1.03


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/pyvideo

1 Replies

您在使用 GPT-SoVITS 语音克隆功能时遇到了 404 错误。这表明 pyVideoTrans 无法连接到您本地部署的 GPT-SoVITS 服务。

请按以下步骤排查:

  1. 确认 GPT-SoVITS 服务已正确启动

    • 检查您是否已按照官方教程成功部署并启动了 GPT-SoVITS 的 WebUI 服务。
    • 服务启动后,默认地址通常是 http://127.0.0.1:9874。请确保该地址在浏览器中可以正常访问。
  2. 检查 pyVideoTrans 中的配置

    • 在 pyVideoTrans 主界面,点击 “设置更多参数”
    • “GPT-SoVITS 地址” 一栏,确认填写的是正确的服务地址(例如 http://127.0.0.1:9874)。
    • 确保 “GPT-SoVITS 角色” 已正确选择您训练或克隆好的语音模型。
  3. 验证服务接口

    • 从错误信息看,软件尝试访问的接口是 /tts。请确保您部署的 GPT-SoVITS 版本支持此 API 接口。部分版本或自定义部署的 API 路径可能不同。
  4. 检查参考音频文件

    • 错误 URL 中包含 ref_audio_path=1.wav。请确认在 GPT-SoVITS 服务端,存在名为 1.wav 的参考音频文件,并且路径可被服务访问。

如果以上步骤无法解决,请提供更多信息

  • 您是如何部署 GPT-SoVITS 的?(例如,使用的一键包、Docker 还是源码部署?)
  • 启动 GPT-SoVITS 服务时,终端或日志中有无报错信息?
  • 在浏览器中访问 http://127.0.0.1:9874 是否正常显示界面?
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