#3949 requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://127.0.0.1:7860/apitts

2409:8a0c* Posted at: 10 hours ago 👁13

404 Client Error: Not Found for url: http://127.0.0.1:7860/apitts:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 374, in run
File "videotrans\tts\_base.py", line 181, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_clone.py", line 62, 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:7860/apitts


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.98-0406

1 Replies

这是由于配置的 F5-TTS 或类似本地 TTS 服务的 API 地址不正确或服务未启动导致的。

  1. 确认服务状态:确保您已正确部署并启动了 F5-TTS、Spark-TTS 或 CosyVoice 等本地 TTS 服务,并且其 API 服务正在运行(通常在终端或命令行窗口中可见)。
  2. 检查 API 地址:在 pyVideoTrans 中,进入 菜单 -> 翻译设置 -> F5-TTS(或您使用的对应渠道)设置面板。确认“API地址”填写正确。默认地址通常是 http://127.0.0.1:7860,但具体端口号需根据您启动服务时的实际设置进行修改。
  3. 验证接口路径:错误信息显示访问的 URL 是 http://127.0.0.1:7860/apitts。请确认您部署的 TTS 服务的 API 端点(endpoint)是否确实是 /apitts。某些服务可能使用不同的路径(如 //tts 等)。您需要根据服务文档,在软件设置中填写完整的正确 API 地址,例如 http://127.0.0.1:7860/tts
  4. 重启服务与软件:修改配置后,请先重启本地 TTS 服务,然后重启 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.

Related resource

Similar issues already exist