#1222 requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://127.0.0.1:9874/tts

2a03:90c0* Posted at: 1 day ago 👁15

404 Client Error: Not Found for url: http://127.0.0.1:9874/tts:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 255, in run
File "videotrans\tts\_base.py", line 182, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_chattts.py", line 47, 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


=
system:Windows-10-10.0.26200-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/win-videotrans

1 Replies

这个错误表明您在使用 ChatTTS 作为配音渠道时,无法连接到本地服务。错误信息显示 http://127.0.0.1:9874/tts 返回 404 未找到。

解决方案:

  1. 确认 ChatTTS 服务已启动: 您需要先启动 ChatTTS 的本地服务,确保它在端口 9874 上正常运行。请检查您的 ChatTTS 服务是否已正确启动。
  2. 检查服务地址: 在 pyVideoTrans 的 菜单 -> TTS配音设置 中,确认您为 ChatTTS 设置的 API 地址是否为 http://127.0.0.1:9874/tts
  3. 临时解决方案: 如果 ChatTTS 服务暂时无法使用,建议您切换到其他可用的配音渠道,例如 Edge-TTS(免费)OpenAI TTS
  4. 检查日志: 如果问题持续存在,请提供 videotrans/logs/ 目录下的完整日志文件,以便进一步分析连接失败的具体原因。
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