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

18.143* Posted at: 1 day ago

Google 翻译失败
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 101, 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 67, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 54, 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 35, in _item_task
videotrans.configure.excepts.TranslateSrtError: Google 翻译失败

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/Administrator/Videos/4K Video Downloader+/Unreal Engine 5.8 Beginner Tutorial - UE5 Starter Course 2026#unrealengine5 #megascans #cgi.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Videos/4K Video Downloader+/_video_out/Unreal Engine 5.8 Beginner Tutorial - UE5 Starter Course 2026#unrealengine5 #megascans #cgi-mp4,
临时文件夹: E:/AI/pyvideotrans/tmp/19524/11138b3a12
未选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Xiaoxiao(Female/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.19045-SP0
version:v4.05
frozen:True
language:zh
root_dir:E:/AI/pyvideotrans

1 Replies

Google翻译在中国大陆无法直接访问,这是网络限制导致的,与软件配置无关。您的代理地址为空,所以请求超时失败。

解决方案:

  1. 配置代理(推荐):在主界面的"网络代理"输入框中,填写您的科学上网代理地址,格式如 http://127.0.0.1:7890(端口号根据您的代理工具实际设置)。
  2. 更换翻译渠道:如果无法使用代理,请将翻译渠道切换为 微软翻译(无需代理),或使用 DeepSeekOpenAI ChatGPT 等其他渠道(需自行配置API Key)。

此外,您的视频文件名包含 # 特殊符号,可能在某些处理环节导致路径解析异常。建议在操作前将视频文件名重命名为纯英文数字(如 UE5_Tutorial.mp4),并放置于浅层目录(如 D:\videos\)。


请查阅相关文档:

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

Dondate via PayPal

Related resource