#2312 TaskCfg(cache_folder=None, target_dir='d:/fan yi gong ju/output/translate', remove_noise=False, is_separate=False, detec

43.255* Posted at: 7 hours ago 👁10

翻译字幕阶段出错 [Google(免费)] Google 翻译失败
Traceback (most recent call last):
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 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 184, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 878, in run
File "videotrans\translator\_base.py", line 81, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_google.py", line 47, in _item_task
RuntimeError: Google 翻译失败

TaskCfg(cache_folder=None, target_dir='d:/fan yi gong ju/output/translate', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code='-', target_language_code='zh-cn', source_sub='F:/2/Its.Bruno.S1E02.720p.WEB.x264-STRiFE.srt', target_sub='d:/fan yi gong ju/output/translate/Its.Bruno.S1E02.720p.WEB.x264-STRiFE.zh-cn.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='Its.Bruno.S1E02.720p.WEB.x264-STRiFE', shibie_audio=None, 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=0, tts_type=None, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='F:/2/Its.Bruno.S1E02.720p.WEB.x264-STRiFE.srt', basename='Its.Bruno.S1E02.720p.WEB.x264-STRiFE.srt', ext='srt', dirname='F:/2', shound_del_name=None, uuid='f46e7f530a', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.26100-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/fan yi gong ju

1 Replies

Google翻译失败通常是由于网络连接问题或请求频率过高导致。请按以下步骤排查:

  1. 检查网络代理:Google翻译在国内需要代理才能访问。请确保:

    • 在软件主界面第5行“网络代理”处填写正确的代理地址(格式如 http://127.0.0.1:7890)。
    • 测试代理是否有效(例如浏览器能否访问 translate.google.com)。
  2. 降低请求频率

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在“字幕翻译调整”区域,将“同时翻译字幕数”改为 1
    • 将“翻译后暂停时间/秒”改为 5
  3. 更换翻译渠道

    • 如果上述方法无效,建议暂时改用其他免费翻译渠道,例如 微软翻译DeepLX
  4. 检查文件路径

    • 从日志看,你的字幕文件路径为 F:/2/Its.Bruno.S1E02.720p.WEB.x264-STRiFE.srt,输出路径为 d:/fan yi gong ju/output/translate。请确保这些路径不包含特殊字符,且软件有读写权限。

如果问题依旧,请提供 D:/fan yi gong ju/logs/ 目录下的最新日志文件以便进一步分析。

有用的文档链接: Google翻译

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