#6055 indextts 该渠道需另行部署并启动后可用self.api_url='http://localhost:7860//gen_single'

240e:39c* Posted at: 2 hours ago

indextts 该渠道需另行部署并启动后可用
self.api_url='http://localhost:7860//gen_single'
Could not fetch config for http://localhost:7860//gen_single/
:
Traceback (most recent call last):
File "videotrans\tts\_gradio.py", line 51, in _send
File "videotrans\tts\_gradio.py", line 36, in get_thread_client
File "gradio_client\client.py", line 162, in init
File "gradio_client\client.py", line 971, in _get_config
ValueError: Could not fetch config for http://localhost:7860//gen_single/

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 207, in run
File "videotrans\tts\_base.py", line 94, in run
File "videotrans\tts\_base.py", line 209, in _exec
File "videotrans\tts\_base.py", line 169, in _local_mul_thread
File "videotrans\tts\_base.py", line 221, in _item_task
File "videotrans\tts\_index.py", line 29, in _run
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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_gradio.py", line 75, in _send
videotrans.configure.excepts.StopTask: indextts 该渠道需另行部署并启动后可用
self.api_url='http://localhost:7860//gen_single'
Could not fetch config for http://localhost:7860//gen_single/


=
system:Windows-10-10.0.26100-SP0
version:v4.06
frozen:True
language:zh
root_dir:F:/pyvideotrans

1 Replies

该错误是因为 Index-TTS 服务未正确部署或 API 地址配置有误。日志显示软件尝试连接 http://localhost:7860//gen_single,但无法获取配置,表明该服务未运行或路径错误。

解决方法:

  1. 确保 Index-TTS 服务已成功启动。Index-TTS 是本地 API 渠道,需自行部署并启动(通常运行在 127.0.0.1:7860 端口)。
  2. 检查 菜单 → TTS设置 → Index-TTS 渠道 中填写的 API 地址http://localhost:7860//gen_single 中的双斜杠 // 可能是问题根源,按以下修正:

    • 如果 Index-TTS 部署为 Gradio WebUI,API 地址通常只需填写根 URL,例如 http://localhost:7860/(不带 /gen_single)。
    • 如果确实需要自定义端点,请确认 Index-TTS 文档中 /gen_single 的准确路径,并移除多余斜杠(如 http://localhost:7860/gen_single)。
  3. 修改后保存设置,重新执行配音任务。

若多次尝试仍失败,请提供 Index-TTS 服务启动后的终端输出或日志,以及软件中该渠道的完整配置截图(可隐去敏感信息)。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource