#2513 翻译字幕阶段出错:[微软(免费)] 网络连接失败:Traceback (most recent call last): File "urllib3\connectionpool.py", line 773, in urlopen Fil

27.151* Posted at: 1 day ago 👁15

翻译字幕阶段出错:[微软(免费)] 网络连接失败:
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.py", line 790, in connect
File "urllib3\connection.py", line 969, in _ssl_wrap_socket_and_match_hostname
File "urllib3\util\ssl_.py", line 480, in ssl_wrap_socket
File "urllib3\util\ssl_.py", line 524, in _ssl_wrap_socket_impl
File "ssl.py", line 512, in wrap_socket
File "ssl.py", line 1070, in _create
File "ssl.py", line 1341, in do_handshake
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 474, in increment
File "urllib3\util\util.py", line 38, in reraise
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.py", line 790, in connect
File "urllib3\connection.py", line 969, in _ssl_wrap_socket_and_match_hostname
File "urllib3\util\ssl_.py", line 480, in ssl_wrap_socket
File "urllib3\util\ssl_.py", line 524, in _ssl_wrap_socket_impl
File "ssl.py", line 512, in wrap_socket
File "ssl.py", line 1070, in _create
File "ssl.py", line 1341, in do_handshake
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionAbortedError(10053, '你的主机中的软件中止了一个已建立的连接。', None, 10053, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\trans_create.py", line 456, in trans
File "videotrans\translator\__init__.py", line 887, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, in _run_text
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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", line 34, in _item_task
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 659, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionAbortedError(10053, '你的主机中的软件中止了一个已建立的连接。', None, 10053, None))

TaskCfg(cache_folder='D:/download/tmp/3912/0773c69b4e', target_dir="D:/FFOutput/_video_out/A Girl's Guide to 21st Century Sex 01-mp4", remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub="D:/FFOutput/_video_out/A Girl's Guide to 21st Century Sex 01-mp4/en.srt", target_sub="D:/FFOutput/_video_out/A Girl's Guide to 21st Century Sex 01-mp4/zh-cn.srt", source_wav='D:/download/tmp/3912/0773c69b4e/en.wav', source_wav_output="D:/FFOutput/_video_out/A Girl's Guide to 21st Century Sex 01-mp4/en.m4a", target_wav='D:/download/tmp/3912/0773c69b4e/target.wav', target_wav_output="D:/FFOutput/_video_out/A Girl's Guide to 21st Century Sex 01-mp4/zh-cn.m4a", subtitles='', novoice_mp4='D:/download/tmp/3912/0773c69b4e/novoice.mp4', noextname="A Girl's Guide to 21st Century Sex 01", shibie_audio=None, targetdir_mp4="D:/FFOutput/_video_out/A Girl's Guide to 21st Century Sex 01-mp4/A Girl's Guide to 21st Century Sex 01.mp4", instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=True, clear_cache=False, translate_type=1, tts_type=0, recogn_type=0, model_name='tiny', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name="D:/FFOutput/A Girl's Guide to 21st Century Sex 01.mp4", basename="A Girl's Guide to 21st Century Sex 01.mp4", ext='mp4', dirname='D:/FFOutput', shound_del_name=None, uuid='0773c69b4e', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.89
frozen:True
language:zh
root_dir:D:/download

1 Replies

翻译阶段出现网络连接错误,这通常是由于网络不稳定、代理设置问题或微软翻译服务暂时不可用导致的。请按以下步骤排查:

  1. 检查网络连接:确保你的网络连接稳定,可以正常访问外网。
  2. 检查代理设置

    • 如果你使用了网络代理(VPN/Clash等),请确保代理软件运行正常。
    • 在 pyVideoTrans 主界面第5行的“网络代理”栏中,正确填写你的代理地址和端口(例如 http://127.0.0.1:7890)。
    • 如果你没有使用代理,请确保“网络代理”栏为空。
  3. 降低请求频率

    • 进入 菜单 -> 工具 -> 高级选项
    • 在“字幕翻译调整”区域,将“同时翻译字幕数”设置为 1
    • 将“翻译后暂停秒”设置为 3 或更高。
  4. 更换翻译渠道

    • 如果问题持续,可以暂时切换到其他免费翻译渠道,例如 Google翻译(同样需要网络代理)或 DeepLX
  5. 检查系统防火墙/杀毒软件:临时关闭 Windows 防火墙或杀毒软件,看是否是其阻止了软件的网络连接。

如果以上步骤均无效,可能是微软翻译服务的临时问题,请稍后再试。

请查看更多参考文档:

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions