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

113.128* Posted at: 1 hour ago

网络连接失败:
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 93, in run
File "videotrans\tts\_gtts.py", line 26, in _exec
File "videotrans\tts\_base.py", line 164, 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\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 207, in run
File "videotrans\tts\_base.py", line 95, 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


=
system:Windows-10-10.0.26100-SP0
version:v4.05
frozen:True
language:zh
root_dir:E:/soft_run/win-videotrans

1 Replies

这是由于 gTTS 翻译渠道需要连接 Google 服务器,在中国大陆无法直连,导致网络连接失败。

解决方案:

  1. 配置网络代理:在软件主界面右上角的「网络代理」输入框中填写你的代理地址(例如 http://127.0.0.1:7890socks5://127.0.0.1:7890),并保存。
  2. 更换配音渠道:推荐切换为无需代理的免费渠道(如 Edge-TTSQwen3-TTS(本地内置)),可在「Dubbing Channel」下拉菜单中更改。
  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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource