#2981 TaskCfg(cache_folder='C:/Users/Zert/Desktop/IPDA/win-pyvideotrans-v3.95/tmp/16356/bae7e57390', target_dir='C:/Users/Zert

95.70* Posted at: 18 days ago 👁46

ASR Error [WhisperX] Network connection failed
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] Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı

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

Traceback (most recent call last):
File "openai\_base_client.py", line 982, 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] Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\_speech2text.py", line 156, in recogn
File "videotrans\recognition\__init__.py", line 246, in run
File "videotrans\recognition\_base.py", line 140, in run
File "videotrans\recognition\_whisperx.py", line 46, in _exec
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 472, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1014, in request
openai.APIConnectionError: Connection error.
TaskCfg(cache_folder='C:/Users/Zert/Desktop/IPDA/win-pyvideotrans-v3.95/tmp/16356/bae7e57390', target_dir='C:/Users/Zert/Desktop/IPDA/win-pyvideotrans-v3.95/output/recogn', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='C:/Users/Zert/Desktop/IPDA/win-pyvideotrans-v3.95/output/recogn/Thinking like a Market Maker.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles='', novoice_mp4=None, noextname='Thinking like a Market Maker', shibie_audio='C:/Users/Zert/Desktop/IPDA/win-pyvideotrans-v3.95/tmp/16356/bae7e57390/Thinking like a Market Maker-1769721025.475267.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=14, model_name='medium.en', voice_autorate=False, video_autorate=False, cuda=True, name='C:/Users/Zert/iTubeGo/Download/Thinking like a Market Maker.mp4', basename='Thinking like a Market Maker.mp4', ext='mp4', dirname='C:/Users/Zert/iTubeGo/Download', shound_del_name=None, uuid='bae7e57390', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.19044-SP0
version:v3.95
frozen:True
language:en
root_dir:C:/Users/Zert/Desktop/IPDA/win-pyvideotrans-v3.95

3 Replies

This error indicates that the WhisperX API service is not running or is inaccessible. The error "Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı" (Turkish for "The target machine actively refused the connection") means the connection to the local WhisperX API server was refused.

Solution:

  1. Ensure the WhisperX API service is running. WhisperX is a separate service that must be started independently before using it in pyVideoTrans. You need to run the whisperx-api service on your local machine (typically at http://127.0.0.1:9000).
  2. Check the API address in pyVideoTrans settings. Go to the software's settings for the WhisperX recognition channel and verify that the API URL (e.g., http://127.0.0.1:9000) is correct and matches the address where your WhisperX service is running.
  3. Verify the service is accessible. Open a web browser and try accessing the API root URL (e.g., http://127.0.0.1:9000). If you don't get a response, the service is not running correctly.
  4. Review the WhisperX API documentation. For detailed setup and deployment instructions for the WhisperX API service, refer to the official guide.

Please refer to the relevant documentation:

thanks a lot :)

You're welcome. The issue was a connection failure to the WhisperX API service. Ensure the service is running and the correct API address is configured in the software settings.

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