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

219.130**2 Posted at: 1 hour ago

Network connection failed
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 97, in run
File "videotrans\tts\_gtts.py", line 26, in _exec
File "videotrans\tts\_base.py", line 156, in _local_mul_thread
File "videotrans\tts\_gtts.py", line 46, in _item_task
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 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 232, in run
File "videotrans\tts\_base.py", line 99, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_gtts.py", line 42, in _run
File "gtts\tts.py", line 335, in save
File "gtts\tts.py", line 316, in write_to_fp
File "gtts\tts.py", line 287, in stream
gtts.tts.gTTSError: Failed to connect. Probable cause: Unknown

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/抖音-记录美好生活.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/_video_out/抖音-记录美好生活-mp4,
临时文件夹: D://tmp/21604/c5a8a7f983
已选 清理已存在
未启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:泰国语, 已选 发送完整字幕
配音渠道:gTTS(免费), 角色:gtts, 配音语言:泰国语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入软字幕
video_duration_ms=196370


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:你使用的配音渠道是 gTTS(免费),这是 Google 的免费 TTS 接口,国内网络无法直接访问 Google 服务,导致连接失败报错 Failed to connect

解决方案:

  1. 更换配音渠道:将配音渠道从 gTTS(免费) 改为 Edge-TTS(免费),Edge-TTS 是微软免费接口,国内可直接使用,声音自然且支持泰国语等所有内置语言,效果优于 gTTS。
  2. 如需继续使用 gTTS:必须配置科学上网(VPN/代理),并在主界面「对齐控制」行右侧的网络代理文本框中填写代理地址(格式如 http://127.0.0.1:10808),并确保代理服务已启动、端口正确。
  3. 建议同时检查翻译渠道 Google(免费) 也需科学上网,国内建议改用 DeepSeek 等国内可直接访问的 AI 翻译渠道,翻译质量更佳。

请查阅相关文档:

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