#6232 网络连接失败Traceback (most recent call last):

111.29* Posted at: 12 hours ago

网络连接失败
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 92, 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 61, in run
File "videotrans\task\_stage_recogn.py", line 62, in recogn
File "videotrans\recognition\__init__.py", line 206, in run
File "videotrans\recognition\_base.py", line 99, 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 712, in recognize_google
speech_recognition.exceptions.RequestError: recognition connection failed: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/360Downloads/abou.mp4,
输出结果保存到文件夹: D:/360Downloads/abou-mp4,
临时文件夹: D:/360Downloads/tmp/20156/256bc2fee6
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:Google识别API(免费), model_name: , 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:日语, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/360Downloads

1 Replies

这是由于您的网络无法连接 Google 识别服务导致的(WinError 10060 连接超时)。Google 识别API/翻译服务在国内网络下通常需要科学上网或代理才能访问。

解决方案:

  1. 在主界面第 5 行「网络代理」中填写可用的代理地址,格式类似 http://127.0.0.1:7890(请根据本机代理软件的实际端口填写)。
  2. 如果不想使用代理,请更换语音识别渠道为非 Google 的免费渠道,例如:

    • faster-whisper(内置)(默认推荐)
    • openai-whisper(内置)
    • 阿里 FunASR / Qwen-ASR(中文效果佳)
  3. 重新执行任务。

注意: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 via ko-fi.com

Dondate via PayPal

Related resource