#4544 TaskCfgSTT(is_cuda=False, uuid='10005e118c', cache_folder='D:/ClipAI/win-pyvideotrans-v3.99-0508/tmp/61808/10005e118c',

240e:348* Posted at: 23 hours ago 👁18

语音识别阶段出错 [Google识别API(免费)] 网络连接失败
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\_speech2text.py", line 191, in recogn
File "videotrans\recognition\__init__.py", line 233, 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 712, in recognize_google
speech_recognition.exceptions.RequestError: recognition connection failed: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
TaskCfgSTT(is_cuda=False, uuid='10005e118c', cache_folder='D:/ClipAI/win-pyvideotrans-v3.99-0508/tmp/61808/10005e118c', target_dir='D:/ClipAI/win-pyvideotrans-v3.99-0508/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='D:/ClipAI/win-pyvideotrans-v3.99-0508/output/recogn/5.srt', target_wav=None, target_wav_output=None, name='D:/Erpan/2026.5.7/成片/5.mp3', noextname='5', basename='5.mp3', ext='mp3', dirname='D:/Erpan/2026.5.7/成片', shound_del_name=None, detect_language='auto', recogn_type=18, model_name='large-v3-turbo', shibie_audio='D:/ClipAI/win-pyvideotrans-v3.99-0508/tmp/61808/10005e118c/5-1778672883.8969786.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/ClipAI/win-pyvideotrans-v3.99-0508

1 Replies

这是中国大陆网络无法直接访问 Google 识别 API 导致的连接超时错误。

解决方案:

  1. 在软件主界面“网络代理地址”文本框中,填入你的 VPN 或代理服务地址(格式如 http://127.0.0.1:10808),端口号请根据你的代理客户端实际设置填写。
  2. 若你未使用代理,建议将语音识别渠道切换为不需要代理的渠道,例如:

    • faster-whisper(本地)(推荐,使用本地模型,无需网络)
    • qwen-asr(本地)(对中文支持好)
    • 字节火山极速版(需自行申请 Key,国内可直连)
  3. 若必须使用 Google 识别,确保代理稳定且代理已正确配置,同时检查代理是否支持 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.

Related resource