#1378 videotrans.configure._except.StopRetry: Could not fetch config for http://127.0.0.1:9981/docs/

120.240* Posted at: 3 hours ago 👁5

网络连接失败:
Traceback (most recent call last):
File "videotrans\tts\_cosyvoice.py", line 59, in _item_task_cosyvoice2
File "gradio_client\client.py", line 153, in init

self.config = self._get_config()

File "gradio_client\client.py", line 908, in _get_config

raise ValueError(f"Could not fetch config for {self.src}")

ValueError: Could not fetch config for http://127.0.0.1:9981/docs/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 267, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_cosyvoice.py", line 155, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_cosyvoice.py", line 151, in _run
File "videotrans\tts\_cosyvoice.py", line 61, in _item_task_cosyvoice2
videotrans.configure._except.StopRetry: Could not fetch config for http://127.0.0.1:9981/docs/


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:zh
root_dir:F:/videotrans_3.83_Green

1 Replies

错误显示无法连接到 http://127.0.0.1:9981/docs/。这表明您选择了 CosyVoice 作为配音渠道,但软件无法连接到您本地部署的 CosyVoice 服务。

解决方案:

  1. 确认服务已启动:请确保您已在本地正确部署并启动了 CosyVoice 服务,并且它正在 http://127.0.0.1:9981 地址上运行。您可以在浏览器中访问 http://127.0.0.1:9981/docs/ 来验证服务是否正常。
  2. 检查端口和地址:如果您的 CosyVoice 服务使用了不同的端口(不是 9981),请在 菜单 -> TTS设置 -> CosyVoice 中修改对应的 API 地址。
  3. 临时解决方案:如果您只是想快速完成配音,可以暂时切换到其他无需本地部署的配音渠道,例如 Edge-TTS

如果您确认 CosyVoice 服务已启动但问题依旧,请检查防火墙设置是否阻止了连接。

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