#3578 TaskCfgVTT(is_cuda=False, uuid='aebb7cfd66', cache_folder='C:/Users/haigui888/Desktop/xiazai/转换工具/win-pyvideotrans/tmp/6

112.120* Posted at: 3 days ago 👁30

语音识别阶段出错 [Google识别API(免费)] speech_recognition.exceptions.RequestError: recognition request failed: Bad Gateway
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 143, 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\job.py", line 105, in run
File "videotrans\task\trans_create.py", line 353, in recogn
File "videotrans\recognition\__init__.py", line 213, in run
File "videotrans\recognition\_base.py", line 180, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_google.py", line 62, in _exec
File "speech_recognition\__init__.py", line 710, in recognize_google
speech_recognition.exceptions.RequestError: recognition request failed: Bad Gateway
TaskCfgVTT(is_cuda=False, uuid='aebb7cfd66', cache_folder='C:/Users/haigui888/Desktop/xiazai/转换工具/win-pyvideotrans/tmp/6300/aebb7cfd66', target_dir='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/_video_out/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC-mp4', source_language='简体中文', source_language_code='zh-cn', source_sub='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/_video_out/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC-mp4/zh-cn.srt', source_wav='C:/Users/haigui888/Desktop/xiazai/转换工具/win-pyvideotrans/tmp/6300/aebb7cfd66/zh-cn.wav', source_wav_output='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/_video_out/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC-mp4/zh-cn.m4a', target_language='英语', target_language_code='en', target_sub='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/_video_out/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC-mp4/en.srt', target_wav='C:/Users/haigui888/Desktop/xiazai/转换工具/win-pyvideotrans/tmp/6300/aebb7cfd66/target.wav', target_wav_output='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/_video_out/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC-mp4/en.m4a', name='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC.mp4', noextname='30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC', basename='30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC.mp4', ext='mp4', dirname='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!', shound_del_name=None, translate_type=1, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='WilliamMultilingual(Male/AU)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=18, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/haigui888/Desktop/xiazai/openclaw教程/【OpenClaw从入门到实战】手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/【OpenClaw从入门到实战】绝对是26年最全OpenClaw全套教程!手把手教你OpenClaw本地部署,零基础接入微信飞书钉钉QQ实现自动化运行!/_video_out/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC-mp4/30-05_Langchain环境搭建_其它模型应用-1080P 高清-AVC.mp4', novoice_mp4='C:/Users/haigui888/Desktop/xiazai/转换工具/win-pyvideotrans/tmp/6300/aebb7cfd66/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:zh
root_dir:C:/Users/haigui888/Desktop/xiazai/转换工具/win-pyvideotrans

1 Replies

这是由于 Google 语音识别 API 服务网络连接不稳定或被阻断导致的“Bad Gateway”错误。

解决方案:

  1. 配置网络代理:Google 服务在中国大陆地区需要代理才能稳定访问。在软件主界面“网络代理”输入框中填写你的代理地址,格式如 http://127.0.0.1:7860
  2. 切换语音识别渠道:如果代理配置后问题依旧,建议使用本地识别模型,避免依赖不稳定的在线服务。

    • 中文视频:切换到 Qwen-ASR(本地)faster-whisper(本地) 并选择 large-v3 模型。
    • 非中文视频:切换到 faster-whisper(本地) 并选择 large-v3 模型。
  3. 检查网络环境:确保你的网络连接稳定,没有防火墙或安全软件阻止软件访问外部网络。

请查阅相关文档:

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.

Related resource