#2871 RuntimeError: TTS-API:合成失败:404 Client Error: Not Found for url: http://127.0.0.1:9874/tts

39.68* Posted at: 1 day ago 👁18

TTS-API:合成失败: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 299, in run
File "videotrans\tts\_base.py", line 179, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_ttsapi.py", line 69, in _run
RuntimeError: TTS-API:合成失败:404 Client Error: Not Found for url: http://127.0.0.1:9874/tts


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

1 Replies

这是由于自定义 TTS API 服务未正确启动或接口地址配置错误导致的。

  1. 检查 TTS API 服务状态:确保你部署的 TTS 服务(例如 F5-TTS、ChatterBox、CosyVoice 等)正在运行,并且其终端窗口没有关闭。
  2. 核对 API 地址和端口:在 pyVideoTrans 的“配音渠道”设置中,检查“API 地址”是否与服务实际监听的地址和端口完全一致。当前错误地址为 http://127.0.0.1:9874/tts,请确认你的服务是否运行在 127.0.0.1:9874,且接口路径是否为 /tts
  3. 测试 API 连通性:打开浏览器,直接访问 http://127.0.0.1:9874/tts(或服务提供的其他测试端点),查看是否能正常响应。如果无法访问,说明服务未启动或端口被占用。
  4. 查阅具体 TTS 服务文档:根据你使用的 TTS 服务(如 F5-TTS、ChatterBox),参考其官方部署文档,确保 API 服务已按正确方式启动。

参考文档:

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