#7955 Network connection failedTraceback (most recent call last):

211.64**8 Posted at: 1 hour ago

Network connection failed
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 63, 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 712, in recognize_google
speech_recognition.exceptions.RequestError: recognition connection failed: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

trk=[TransCreate]: uuid='e18055f032', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: F:/mewtepe/1011.mp4,
输出结果保存到文件夹: F:/mewtepe/_video_out/1011-mp4,
临时文件夹: F:/win-pyvideotrans-v4.15/tmp/43260/e18055f032
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:Google识别API(免费), , 发音语言: 日语,
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 未选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕(双) 目标语言在上双字幕
已选 仅输出mp4, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: F:/mewtepe/1011.mp4,
输出结果保存到文件夹: F:/mewtepe/_video_out/1011-mp4,
临时文件夹: F:/win-pyvideotrans-v4.15/tmp/43260/e18055f032
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:Google识别API(免费), , 发音语言: 日语,
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 未选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕(双) 目标语言在上双字幕
已选 仅输出mp4
video_duration_ms=7722033


=
system:Windows-10-10.0.26300-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:F:/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:你在语音识别渠道选择了「Google 识别API(免费)」,该渠道需连接 Google 服务器,国内网络无法直连([WinError 10060] 连接尝试失败即为连接超时),且你的日志显示 proxy_str=None,即未填写代理。

解决方案(二选一):

一、改用本地离线识别(推荐,无需网络)

  1. 主界面「语音识别(STT Service)」下拉改为 faster-whisper(内置);
  2. 模型选择 large-v3 或 large-v3-turbo(日语识别效果好的可选 openai-whisper(内置) + large-v3);
  3. 首次使用会自动下载模型,若下载失败请手动下载,见下方模型下载文档;
  4. 若你使用 NVIDIA 显卡且已配好 CUDA 12.8 + cuDNN 9,可勾选「启用CUDA加速(Enable CUDA?)」提速,未配置则保持不勾选。

二、继续使用 Google 渠道,但必须配置有效代理

  1. 在主界面「对齐控制(Alignment)」行右侧的网络代理文本框中填写你的代理地址,格式如 http://127.0.0.1:10808 或 socks5://127.0.0.1:端口号;
  2. 确保代理服务已运行且端口正确,填写无效地址会导致所有网络请求失败;
  3. 勾选主界面「清理已生成(Clear Output)」后重新执行(你当前已勾选,可保持)。
注意:你的任务后续使用 Google(免费) 翻译渠道,同样需要代理才能使用,否则也会失败。若无代理,建议翻译渠道改用 微软翻译(免费),或改用 DeepSeek(效果更好、价格很低,国内可直连)。

请查阅相关文档:

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