#5558 TaskCfgVTT(uuid='4f48945569', name='G:/POWER-22000015165-20260628(12-00)-1782651971106.mp3', dirname='G:/', noextname='P

103.219* Posted at: 14 hours ago

翻译字幕阶段出错 [Google(免费)] Google 翻译失败
Traceback (most recent call last):

File "videotrans\translator\_base.py", line 69, in run

File "videotrans\translator\_base.py", line 98, 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 421, in exc_check

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 135, in process_task

File "videotrans\task\trans_create.py", line 620, in trans

File "videotrans\translator\__init__.py", line 849, in run

File "videotrans\translator\_base.py", line 75, in run

File "tenacity\__init__.py", line 480, in call

File "videotrans\translator\_google.py", line 36, in _item_task

videotrans.configure.excepts.TranslateSrtError: Google 翻译失败
TaskCfgVTT(uuid='4f48945569', name='G:/POWER-22000015165-20260628(12-00)-1782651971106.mp3', dirname='G:/', noextname='POWER-22000015165-20260628(12-00)-1782651971106', basename='POWER-22000015165-20260628(12-00)-1782651971106.mp3', ext='mp3', target_dir='G:/剪/POWER-22000015165-20260628(12-00)-1782651971106-mp3', cache_folder='E:/py/win-pyvideotrans-v4.02-0615/tmp/17592/4f48945569', is_cuda=True, source_language='韩语', source_language_code='ko', source_sub='G:/剪/POWER-22000015165-20260628(12-00)-1782651971106-mp3/ko.srt', source_wav='E:/py/win-pyvideotrans-v4.02-0615/tmp/17592/4f48945569/ko.wav', source_wav_output='G:/剪/POWER-22000015165-20260628(12-00)-1782651971106-mp3/ko.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='G:/剪/POWER-22000015165-20260628(12-00)-1782651971106-mp3/zh-cn.srt', target_wav='E:/py/win-pyvideotrans-v4.02-0615/tmp/17592/4f48945569/target.wav', target_wav_output='G:/剪/POWER-22000015165-20260628(12-00)-1782651971106-mp3/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='ko', recogn_type=0, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, subtitle_language=None, app_mode='tiqu', subtitles='', targetdir_mp4='G:/剪/POWER-22000015165-20260628(12-00)-1782651971106-mp3/POWER-22000015165-20260628(12-00)-1782651971106.mp4', novoice_mp4='E:/py/win-pyvideotrans-v4.02-0615/tmp/17592/4f48945569/novoice.mp4', is_separate=True, embed_bgm=False, instrument='E:/py/win-pyvideotrans-v4.02-0615/tmp/17592/4f48945569/instrument.wav', vocal='E:/py/win-pyvideotrans-v4.02-0615/tmp/17592/4f48945569/vocal.wav', clear_cache=False, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.02
frozen:True
language:zh
root_dir:E:/py/win-pyvideotrans-v4.02-0615

1 Replies

Google翻译在中国大陆地区需要代理(科学上网)才能正常使用。你的日志中未显示配置代理,这是失败的直接原因。

解决方案:

  1. 临时切换渠道:将翻译渠道从Google改为微软翻译(免费且无需代理)。
  2. 若坚持使用Google:在主界面第5行(同步对齐和字幕)的网络代理文本框内填写你的代理地址,格式如 http://127.0.0.1:7890
  3. 更新软件版本:你当前为v4.02,建议将软件更新至最新v4.03-0626,并重启后重试。

如果问题依旧,请提供 logs/ 目录下最新的日志文件内容。

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. Dondate: ko-fi.com/jianchang512

Related resource