#7049 indextts Service must be deployed and running before useself.api_url='http://127.0.0.1:7860'

186.154**9 Posted at: 1 hour ago

indextts Service must be deployed and running before use
self.api_url='http://127.0.0.1:7860'
[WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión

Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] No se puede establecer una conexión ya que el equi
......
run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 233, in run
File "videotrans\tts\_base.py", line 103, in run
File "videotrans\tts\_base.py", line 206, in _exec
File "videotrans\tts\_base.py", line 166, in _local_mul_thread
File "videotrans\tts\_base.py", line 218, in _item_task
File "videotrans\tts\_index.py", line 35, 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 76, in _send
videotrans.configure.excepts.StopTask: indextts Service must be deployed and running before use
self.api_url='http://127.0.0.1:7860'
[WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/HP Studio/Downloads/El Devocional Pastor Eduardo Cañas 02 septiembre 2026.wav,
输出结果保存到文件夹: C:/Users/HP Studio/Downloads/_video_out/El Devocional Pastor Eduardo Cañas 02 septiembre 2026-wav,
临时文件夹: C:/Users/HP Studio/Downloads/win-pyvideotrans-v4.11/tmp/3632/02935f3bd9
已选 清理已存在
已启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), large-v3-turbo, 发音语言: Spanish (Latin America), 断句方式:默认断句
TranslateSrt:Microsoft Translate (Free),原始语言:Spanish (Latin America),目标语言:English, 已选 SendSRT
TTS Service:Index-TTS(LocalAPI), 角色:clone, 配音语言:English, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: Hard Subtitles
已选 仅输出mp4


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:en
root_dir:C:/Users/HP Studio/Downloads/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

The error indicates that the Index-TTS service is not running locally on port 7860. Index-TTS is a "LocalAPI" channel, meaning you must first deploy and start the service yourself before it can be used by pyVideoTrans.

Why this happens

[WinError 10061] Connection refused means nothing is listening at http://127.0.0.1:7860. This occurs because:

  1. The Index-TTS service was never started, or
  2. It crashed/exited, or
  3. It's running on a different port than 7860.

How to fix

  1. Deploy and run Index-TTS locally

    • Follow the official Index-TTS deployment guide to set it up on your machine.
    • Start the Gradio WebUI service (default port 7860).
  2. Verify the service is reachable

    • Open your browser and visit http://127.0.0.1:7860.
    • If the page loads, the service is up. If it doesn't, the service is not running correctly.
  3. Check the API URL in pyVideoTrans

    • Go to 菜单/TTS设置/自定义TTS API (or the Index-TTS channel settings).
    • Confirm the address is exactly http://127.0.0.1:7860/.
    • If your service runs on a different port (e.g., 9880), update the address accordingly.
  4. Make sure you're using the API port, not the WebUI port

    • Some TTS projects expose both a WebUI (7860) and an API port. If your deployment uses a separate API port, use that one instead.

Important note

The Index-TTS service must be deployed and running before you start the video translation task. You cannot rely on pyVideoTrans to auto-start it — this is a manually managed local service.

Please check the relevant documentation:

If the service is definitely running but the error persists, provide the exact port and whether you can access http://127.0.0.1:7860 from your browser, and I'll help further.

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource