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

181.172**3 Posted at: 4 hours 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
......
", line 118, in map_httpcore_exceptions
httpx.ConnectError: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión

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

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in 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 119, in run
File "videotrans\tts\_base.py", line 96, in run
File "videotrans\tts\_base.py", line 199, in _exec
File "videotrans\tts\_base.py", line 159, in _local_mul_thread
File "videotrans\tts\_base.py", line 214, in _item_task
File "videotrans\tts\_index.py", line 40, in _run
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]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/Descargas/YTDown.com_YouTube_Media_19i4E8GnLlU_東日本大震災発生時の様子-ウェザーニュース-2011-03-11_001_1080p.mp4,
输出结果保存到文件夹: D:/Descargas/_video_out/YTDown.com_YouTube_Media_19i4E8GnLlU_東日本大震災発生時の様子-ウェザーニュース-2011-03-11_001_1080p-mp4,
临时文件夹: D:/Programas/pyVideoTrans/win-pyvideotrans-v4.14/tmp/9924/b817464ae3
已选 清理已存在
未启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), large-v3-turbo, 发音语言: Japanese, 断句方式:默认断句
TranslateSrt:Google Translate (Free),原始语言:Japanese,目标语言:Spanish (Latin America), 已选 SendSRT
TTS Service:Index-TTS(LocalAPI), 角色:wether channel eartquake.wav, 配音语言:Spanish (Latin America), 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: Soft Subtitles
video_duration_ms=339339


=
system:Windows-10-10.0.26300-SP0
version:v4.14
frozen:True
language:en_US
root_dir:D:/Programas/pyVideoTrans/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 4 hours ago

The error [WinError 10061] No se puede establecer una conexión... (Connection refused) indicates the software cannot connect to your Index-TTS service at http://127.0.0.1:7860.

Index-TTS is a self-deployed local model, and pyVideoTrans only calls it via API — it does not start it for you.

The service is either not running, not finished loading, or using a different port.

Solutions

  1. Start the Index-TTS service first. Manually launch Index-TTS's WebUI/API on your machine and wait until it is fully loaded and showing its web page in a browser.

    Do not start the translation task until then.
  2. Verify the port matches. Open http://127.0.0.1:7860 in your browser.

    If the page loads, the service is fine.

    If it does not load, the service is on a different port — update the port in pyVideoTrans to match.

    Also confirm you enabled the API in Index-TTS (some versions need a specific startup command/flag to expose the API on the port).
  3. Check for version mismatch. This error can also occur if the API service version and the software's expected API are incompatible (e.g., wrong endpoint).

    Ensure the Index-TTS version you deployed is compatible with the version you configured.

    If you use Gradio WebUI integration, confirm you created the correct gradio_api.txt in the pyVideoTrans root directory and set the WebUI address in Menu → TTS Settings → Custom TTS API.
  4. If the service runs but still refuses connection, confirm no proxy is intercepting 127.0.0.1 (local addresses should bypass proxy automatically) and that no firewall is blocking the port.
Note: For Index-TTS as a local API channel, you must deploy and run the Index-TTS project yourself before use.

pyVideoTrans provides only the API/WebUI integration.

If after confirming the service is running and reachable in the browser the error persists, please provide the pyVideoTrans log (latest ~30 lines) and the Index-TTS startup console output.

请查阅相关文档:

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