#5440 代理地址:http://127.0.0.1:29290

104.168* Posted at: 14 hours ago

Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 90, in run
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 46, in run
File "videotrans\task\trans_create.py", line 319, in recogn
File "videotrans\recognition\__init__.py", line 191, in run
File "videotrans\recognition\_base.py", line 97, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_google.py", line 57, in _exec
File "speech_recognition\__init__.py", line 710, in recognize_google
speech_recognition.exceptions.RequestError: recognition request failed: Bad Gateway

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/#448 VARA Aprs por EA8EE Jose_720p.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/51TNC/#448 VARA Aprs por EA8EE Jose_720p-mp4,
临时文件夹: D:/win-pyvideotrans-v4.03-0622/tmp/17552/c4bb15e4a7
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:Google识别API(免费), model_name: , 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:OmniVoice(本地API), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:29290


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.03-0622

1 Replies

这是因为语音识别渠道选择了 Google识别API(免费),而该渠道在大陆地区需要稳定的代理(科学上网)才能正常访问。控制台显示 Bad Gateway,说明当前的代理 http://127.0.0.1:29290 不可用或返回了网关错误。

解决步骤:

  1. 检查代理服务:确认你的代理软件(如V2Ray、Clash等)正在运行,并且端口号为 29290,协议为 http。可在浏览器中访问 http://127.0.0.1:29290 测试连通性。
  2. 更换代理:如果代理端口不正确,请修改主界面 网络代理 文本框中的地址,格式如 http://127.0.0.1:10809
  3. 更换识别渠道:如果不想配置代理,可将语音识别渠道改为 faster-whisper(本地)openai-whisper(本地)(需有NVIDIA显卡并勾选CUDA加速),它们无需联网,速度和质量均不错。
  4. 取消代理:如果无需代理即可访问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. Dondate: ko-fi.com/jianchang512

Related resource