#8857 Traceback (most recent call last): File

203.27**8 Posted at: 8 hours ago

Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 101, 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 71, in run
File "videotrans\task\_stage_recogn.py", line 64, in recogn
File "videotrans\recognition\__init__.py", line 141, in run
File "videotrans\recognition\_base.py", line 110, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_google.py", line 58, in _exec
File "speech_recognition\__init__.py", line 710, in recognize_google
speech_recognition.exceptions.RequestError: recognition request failed: Bad Gateway

trk=[TransCreate]: uuid='8b16ebb859', proxy_str='http://127.0.0.1:7897', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Downloads/01ea356c6a38c2344f0370019ee0b0cab9_258.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Downloads/_video_out/01ea356c6a38c2344f0370019ee0b0cab9_258-mp4,
临时文件夹: E:/shipinfanyi/tmp/15144/8b16ebb859
已选 清理已存在
已启用CUDA加速
语音识别:Google识别API(免费), , 发音语言: 简体中文, ,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:马来语, 已选 发送完整字幕, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
配音渠道:Edge-TTS(免费), 角色:Yasmin(Female/MY), 配音语言:马来语, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:7897, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=True, do_diarize=True
video_duration_ms=717300


=
system:Windows-10-10.0.22621-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:E:/shipinfanyi

1 Replies

#1 DeepSeek reply at 8 hours ago

核心原因:语音识别渠道选的是 Google识别API(免费),该渠道需经代理访问 Google,本次请求被代理转发失败并返回 Bad Gateway,属于网络/代理侧故障,与软件运行逻辑无关。

解决方案(按优先级):

  1. 推荐:更换内置识别渠道(彻底规避网络问题)

    • 主界面 语音识别 下拉改为 faster-whisper(内置),模型选 large-v3-turbo(中文效果更好可选 Qwen-ASR(内置) 或 阿里FunASR(内置) + paraformer-zh/sensevoice-small)
    • 你已启用 CUDA 加速,本地模型速度很快,且不受代理影响
    • 首次使用会自动下载模型
  2. 若必须继续用 Google 识别,排查代理

    • 确认代理软件确实在 7897 端口运行,且该端口提供的是 HTTP 代理(而非仅 SOCKS)
    • 用浏览器访问 https://www.google.com 验证该代理可用;Bad Gateway 多为节点故障/被墙,更换节点后重试
    • 确认代理不是「全局/TUN 冲突」,可临时把代理框清空后重试一次以对照结果
  3. 附加建议

    • 你的视频名过长且为哈希串(01ea356c6a38c2344f0370019ee0b0cab9_258.mp4),建议改名为简短名称(如 video1.mp4)并放在浅层目录,可规避后续 ffmpeg 路径类报错
    • 重试前勾选 清理已生成

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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