#3572 TaskCfgVTT(is_cuda=True, uuid='c1ccb10b32', cache_folder='G:/VideoTrans/tmp/113636/c1ccb10b32', target_dir='F:/ccc/3D en

113.116* Posted at: 5 hours ago 👁10

翻译字幕阶段出错 [Google(免费)] 连接超时,请检查网络连接是否稳定
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

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

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 488, in _make_request
File "urllib3\connectionpool.py", line 464, in _make_request
File "urllib3\connectionpool.py", line 1093, in _validate_conn
File "urllib3\connection.py", line 753, in connect
File "urllib3\connection.py", line 207, in _new_conn
urllib3.exceptions.ConnectTimeoutError: (, 'Connection to api-edge.cognitive.microsofttranslator.com timed out. (connect timeout=300)')

The above exception was the direct cause of the follo
......
&to=zh-Hans&api-version=3.0&includeSentenceLength=true (Caused by ConnectTimeoutError(, 'Connection to api-edge.cognitive.microsofttranslator.com timed out. (connect timeout=300)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\trans_create.py", line 645, in trans
File "videotrans\translator\__init__.py", line 937, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 123, 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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", line 45, in _item_task
File "requests\api.py", line 115, in post
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 665, in send
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?from=&to=zh-Hans&api-version=3.0&includeSentenceLength=true (Caused by ConnectTimeoutError(, 'Connection to api-edge.cognitive.microsofttranslator.com timed out. (connect timeout=300)'))
TaskCfgVTT(is_cuda=True, uuid='c1ccb10b32', cache_folder='G:/VideoTrans/tmp/113636/c1ccb10b32', target_dir='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)/010/16. Lecture 15 - Improving grass material-mp4', source_language='英语', source_language_code='en', source_sub='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)/010/16. Lecture 15 - Improving grass material-mp4/en.srt', source_wav='G:/VideoTrans/tmp/113636/c1ccb10b32/en.wav', source_wav_output='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)/010/16. Lecture 15 - Improving grass material-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)/010/16. Lecture 15 - Improving grass material-mp4/zh-cn.srt', target_wav='G:/VideoTrans/tmp/113636/c1ccb10b32/target.wav', target_wav_output='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)/010/16. Lecture 15 - Improving grass material-mp4/zh-cn.m4a', name='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)/16. Lecture 15 - Improving grass material.mp4', noextname='16. Lecture 15 - Improving grass material', basename='16. Lecture 15 - Improving grass material.mp4', ext='mp4', dirname='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)', shound_del_name=None, translate_type=0, tts_type=10, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='001.wav', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/ccc/3D environments in Blender/10. Chapter 3 - Creating grass (3.2)/010/16. Lecture 15 - Improving grass material-mp4/16. Lecture 15 - Improving grass material.mp4', novoice_mp4='G:/VideoTrans/tmp/113636/c1ccb10b32/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:G:/VideoTrans

1 Replies

这是由于网络连接问题导致无法访问微软翻译API。错误显示连接 api-edge.cognitive.microsofttranslator.com 超时。

解决方案:

  1. 配置网络代理:在软件主界面的“网络代理”输入框中,填写你的代理地址和端口(例如 http://127.0.0.1:7860)。这是使用Google、微软等国外服务所必需的。
  2. 切换翻译渠道:如果无法解决代理问题,建议更换为无需代理的翻译渠道。

    • 免费渠道:切换到“微软翻译(免费)”(无需代理)或“M2M100(本地)”(本地模型)。
    • AI渠道:配置并使用国内的AI翻译渠道,如DeepSeek、智谱AI、硅基流动等(需自备API Key)。

请查阅相关文档:

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