#5424 [WinError 10061] No connection could be made because the target machine actively refused it

171.234* Posted at: 10 hours ago

omnivoice This channel needs deployed and started before available
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 it

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

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 935, in _get_config
File "httpx\_api.py", line 195, in get
File "httpx\_api.py", line 109, in request
File "httpx\_client.py", line 825, in request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 93, in run
File "videotrans\tts\_base.py", line 208, in _exec
File "videotrans\tts\_base.py", line 168, in _local_mul_thread
File "videotrans\tts\_base.py", line 220, 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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_omnivoice.py", line 124, 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 74, in _send
videotrans.configure.excepts.StopTask: omnivoice This channel needs deployed and started before available
self.api_url='http://127.0.0.1:7860'
[WinError 10061] No connection could be made because the target machine actively refused it


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:en
root_dir:C:/Users/admin/Documents/win-pyvideotrans-v4.03-0622

1 Replies

This error occurs because the OmniVoice-TTS local service is not running. pyVideoTrans requires the OmniVoice backend to be deployed and started manually before you can use it as a dubbing channel. The API will listen at http://127.0.0.1:7860 (default) and your software tried to connect but the target machine refused it.

Solution:

  1. Deploy and start the OmniVoice-TTS service on your computer.

    • Follow the official OmniVoice documentation to set it up.
    • Once started, verify the service is accessible by visiting http://127.0.0.1:7860 in your browser (you should see a Gradio web ui).
  2. Place reference audio files (if you plan to use voice cloning) in the f5-tts/ folder inside the pyVideoTrans root directory.

    • Reference audio must be 5–10 s WAV files with clear speech and no background noise.
    • After placing them, go to Menu → TTS Settings → Set Reference Audio and add entries like myaudio.wav#spoken text.
  3. Restart pyVideoTrans and retry the dubbing task. The error should be resolved once the service is running.

Important: If you haven't deployed OmniVoice yet, consider using local built-in alternatives like Qwen-TTS(本地内置) or ChatterBox(本地内置) which require no external service.

Please refer to the related documentation:

Post Your Reply