#3959 ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

103.49* Posted at: 2 hours ago 👁6

Connection aborted unexpectedly, check network stability
Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 44, in run
File "videotrans\task\trans_create.py", line 360, in recogn
File "videotrans\recognition\__init__.py", line 233, in run
File "videotrans\recognition\_base.py", line 143, 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\recognition\_google.py", line 62, in _exec
File "speech_recognition\__init__.py", line 713, in recognize_google
File "http\client.py", line 460, in read
File "http\client.py", line 583, in _read_chunked
File "http\client.py", line 566, in _get_chunk_left
File "http\client.py", line 526, in _read_next_chunk_size
File "socket.py", line 717, in readinto
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:en
root_dir:E:/win-pyvideotrans-v3.98-0403

1 Replies

This error is caused by an unstable network connection or interruption during the use of the Google Speech Recognition service.

The error log indicates that the connection was aborted (ConnectionAbortedError) while the recognize_google function was running. This typically happens when the network proxy is unstable, the connection times out, or the service is temporarily unavailable.

Solution Steps:

  1. Check Network Proxy: If you are using a network proxy (e.g., for accessing Google services from mainland China), ensure the proxy address in the "Network Proxy Address" field is correct and the proxy service is stable. The format should be like http://127.0.0.1:10808. If you don't have a reliable proxy, leave this field empty and try a different speech recognition service that does not require a proxy.
  2. Switch Speech Recognition Service: Google Speech Recognition requires a stable connection to Google's servers. It is recommended to switch to a local or more reliable online service.

    • For free/local recognition: Use faster-whisper (local) or openai-whisper (local). Ensure you have downloaded the model (e.g., large-v3) and have CUDA enabled for speed if you have an NVIDIA GPU.
    • For paid online recognition: Consider using OpenAI Whisper API, Qwen3-ASR (Bailian), or ByteDance Volcano ASR if you have the corresponding API keys.
  3. Retry with a Stable Network: If you must use Google Speech Recognition, ensure you have a very stable VPN/proxy connection and try again. You can also try processing a shorter audio clip to test.
  4. Adjust Advanced Settings (if using local models): If you switch to a local model like faster-whisper and encounter performance issues, you can adjust settings in Menu -> Tools/Options -> Advanced Options -> Speech Recognition Parameters:

    • Reduce beam_size and best_of to 1.
    • Change CUDA Data Type to float16 or int8 to reduce VRAM usage.

Related 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