#6890 Google 翻译失败Traceback (most recent call last):

9.142.**2 Posted at: 3 hours ago

Google 翻译失败
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 107, 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\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 58, in run
File "videotrans\translator\_base.py", line 74, 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 翻译失败

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式

未启用CUDA加速
已选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:openai-whisper(内置), tiny, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Steffan(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4

1 Replies

#1 DeepSeek reply at 3 hours ago

Google 翻译失败的根本原因是:Google 翻译在国内无法直接访问,需要科学上网;若网络不通则反复重试后仍会报错。

解决方案:

  1. 确认已开启科学上网代理,并确保代理能访问 translate.google.com
  2. 若不想使用代理,可切换其他翻译渠道:

    • 使用 DeepSeek(需在 菜单→翻译设置→DeepSeek 中填写 API Key,然后在翻译渠道中选择 Deepseek)。
    • 使用本地离线模型 M2M100(内置)(首次使用会下载模型,完全离线)。
    • 使用 Microsoft 翻译,但注意微软接口可能已关闭,能用时也会自动回退。
  3. 检查代理设置:软件顶部 菜单→设置→代理 中填写正确的代理地址(如 http://127.0.0.1:7890),国内访问国内 API 时软件会自动绕过代理。

若更换渠道后仍报错,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(底部约30行)以便进一步分析。

请查阅相关文档:

Thinking...
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 via ko-fi.com

Related resource