#4456 TaskCfgSTT(is_cuda=False, uuid='f191d3af71', cache_folder='F:/pyvideotrans-v3.99-428.7/tmp/23972/f191d3af71', target_dir

179.226* Posted at: 2 hours ago 👁12

ASR Error [WhisperX] Connection error.
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] Nenhuma conexão pôde ser feita porque a máquina de destino as recusou ativamente

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

Traceback (most recent call last):
File "openai\_base_client.py", line 1005, 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] Nenhuma conexão pôde ser feita porque a máquina de destino as recusou ativamente

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 159, in recogn
File "videotrans\recognition\__init__.py", line 253, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_whisperx.py", line 38, in _exec
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 483, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1037, in request
openai.APIConnectionError: Connection error.
TaskCfgSTT(is_cuda=False, uuid='f191d3af71', cache_folder='F:/pyvideotrans-v3.99-428.7/tmp/23972/f191d3af71', target_dir='F:/pyvideotrans-v3.99-428.7/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='F:/pyvideotrans-v3.99-428.7/output/recogn/Konjiki no Gash Bell - Episodio 53 (SD).srt', target_wav=None, target_wav_output=None, name='C:/Users/marca/Downloads/Konjiki no Gash Bell - Episodio 53 (SD).mp4', noextname='Konjiki no Gash Bell - Episodio 53 (SD)', basename='Konjiki no Gash Bell - Episodio 53 (SD).mp4', ext='mp4', dirname='C:/Users/marca/Downloads', shound_del_name=None, detect_language='ja', recogn_type=15, model_name='distil-large-v3', shibie_audio='F:/pyvideotrans-v3.99-428.7/tmp/23972/f191d3af71/remove_noise.wav', remove_noise=True, enable_diariz=True, nums_diariz=0, rephrase=0, fix_punc=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:en
root_dir:F:/pyvideotrans-v3.99-428.7

1 Replies

This is a WhisperX API connection error. The error [WinError 10061] No connection could be made because the target machine actively refused it means pyVideoTrans cannot reach the WhisperX API service. This usually happens because the WhisperX service is not running, is not installed, or the API address is misconfigured.

Solution Steps:

  1. Ensure WhisperX API is deployed and running
    WhisperX is a separate service that must be started before using it as an ASR channel. If you haven’t installed it yet, follow the official WhisperX API setup guide.
  2. Check the API address configuration
    In pyVideoTrans, go to Menu → ASR Settings → WhisperX API and verify the API Base URL is correct (default is usually http://127.0.0.1:8000/v1). Keep the terminal/command window of the WhisperX service open while processing.
  3. Test the connection
    Open a browser or use curl to access the API URL (e.g., http://127.0.0.1:8000/v1/models) to confirm the service is listening. If you get a connection refused error, the service is not running.
  4. Firewall/port
    Make sure no firewall is blocking the port. If you changed the default port, update the URL in the software accordingly.

Please refer to the relevant documentation:

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.

Related resource