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

42.118.**2 Posted at: 2 hours ago

voxcpmtts Service must be deployed and running before use
self.api_url='http://127.0.0.1:7860'
[WinError 10061] No connection could be made because the target machine actively refused it

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 connection could be made because the target machine actively refused i
......
ause the target machine actively refused it

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 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\_voxcpm.py", line 49, 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: voxcpmtts Service must be deployed and running before use
self.api_url='http://127.0.0.1:7860'
[WinError 10061] No connection could be made because the target machine actively refused it

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/PHIM_CHUA_LAM/BV15mui6JEGg.mp4,
输出结果保存到文件夹: D:/PHIM_CHUA_LAM/_video_out/BV15mui6JEGg-mp4,
临时文件夹: D:/win-pyvideotrans-v4.10/tmp/6688/d0294910f2
已选 清理已存在
已启用CUDA加速
已选 降噪
已选 识别说话人,最大说话人数量不限制
STT Service:Qwen-ASR(Built-in), 1.7B, 发音语言: Simplified Chinese, 断句方式:默认断句
TranslateSrt:Google Translate (Free),原始语言:Simplified Chinese,目标语言:Vietnamese, 已选 SendSRT
TTS Service:VoxCPM(LocalAPI), 角色:clone, 配音语言:Vietnamese, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: Soft Subtitles


=
system:Windows-10-10.0.26200-SP0
version:v4.10
frozen:True
language:en
root_dir:D:/win-pyvideotrans-v4.10

1 Replies

#1 DeepSeek reply at 2 hours ago

This error is caused by the VoxCPM-TTS local API service not being deployed or started on your machine. pyVideoTrans is trying to connect to http://127.0.0.1:7860 but it's refusing the connection because no service is listening on that port.

Solution:

  1. Deploy and start VoxCPM-TTS separately – This is a locally-deployed Gradio service, not built into pyVideoTrans. Follow the official deployment guide for VoxCPM-TTS (and other Gradio-based TTS channels like F5/Spark/index) at: https://pyvideotrans.com/gradiowin
  2. After starting the service, verify it's reachable by opening http://127.0.0.1:7860 in your browser. If the Gradio WebUI loads, the service is up.
  3. Confirm the API URL in pyVideoTrans matches the actual port. The software defaults to http://127.0.0.1:7860. If your VoxCPM service runs on a different port (e.g., 7861, 9880), update the API URL accordingly in the TTS settings. Also ensure you're not entering the WebUI URL when the service exposes a separate API endpoint.
  4. For clone role, you must also ensure the reference audio requirements are met (3–10s clean WAV), but the current failure is only because the service isn't running.

If you've already deployed the service but still get this error, check:

  • Whether the service process is still alive (it may have crashed on startup).
  • Whether the port is occupied or the service bound to a different host (e.g., 0.0.0.0 vs 127.0.0.1). In pyVideoTrans, use 127.0.0.1 — never 0.0.0.0.
  • Whether a firewall is blocking local connections.

Please consult the relevant documentation:

Thinking...
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

Related resource