#5521 代理地址:http://127.0.0.1:7890

78.105* Posted at: 4 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:/Users/THUNDEROBOT/Downloads/34652488276-1-192.mp4,
输出结果保存到文件夹: C:/Users/THUNDEROBOT/Downloads/34652488276-1-192-mp4,
临时文件夹: C:/Users/THUNDEROBOT/Downloads/win-pyvideotrans-v4.03-0622/tmp/21556/68a711d52a
已选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:Google识别API(免费), model_name: , 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunxia(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
代理地址:http://127.0.0.1:7890


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

1 Replies

Bad Gateway 表示 Google 语音识别服务通过你的代理无法正常连接(通常是由于网络限制或代理不可用)。

解决方案:

  1. 检查代理:确认你设置的代理地址 http://127.0.0.1:7890 对应的代理服务是否正在运行,并且能够正常访问 Google 服务(例如在浏览器中测试访问 google.com)。如果代理无效,清空代理文本框并保存。
  2. 更换 ASR 渠道:在中国大陆直接使用 Google 识别 API 容易失败,建议改用 faster-whisper(本地)Microsoft 语音识别(无需代理),无需网络环境,稳定性更高。
  3. 使用 VPN 并确保代理格式正确:如果必须使用 Google 识别,请确保代理格式为 http://127.0.0.1:端口号socks5://127.0.0.1:端口号,且代理软件运行正常。
  4. 临时切换为 Microsoft 识别:在语音识别渠道选择 Microsoft 语音识别(免费,无需代理),可避免此问题。
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