#7658 Connection timeout, please check network stability:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyan

2001**cffc Posted at: 1 hour ago

Connection timeout, please check network stability:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'D:/win-pyvideotrans-v4.14/tmp/14888/listen_voice/0-zh-cn-1790560539.5261073.wav', 'tts_type': 0, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "aiohttp\connector.py", line 1412, in _start_tls_connection
File "asyncio\base_events.py", line 1253, in start_tls
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "aiohttp\client.py", line 725, in _connect_and_send_request
File "aiohttp\connector.py", line 622, in connect
File "aiohttp\connector.py", line 1187, in _create_connection
File "aiohttp\connector.py", line 1677, in _create_proxy_connection
File "aiohttp\connector.py", line 1397, in _start_tls_connection
File "async_timeout\__init__.py", line 179, in aexit
File "async_timeout\__init__.py", line 265, in _do_exit
asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 119, in run
File "videotrans\tts\_base.py", line 93, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 154, in _exec
File "edge_tts\communicate.py", line 590, in save
File "edge_tts\communicate.py", line 566, in stream
File "edge_tts\communicate.py", line 431, in __stream
File "aiohttp\client.py", line 1482, in aenter
File "aiohttp\client.py", line 1061, in _ws_connect
File "aiohttp\client.py", line 770, in _request
File "aiohttp\client.py", line 729, in _connect_and_send_request
aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=806c9362f97d4234bd0159c48510963c&Sec-MS-GEC=82A6AC4CD1FC41E8CB0EB5396BB4F417615F4AD2373E9CC0A8060CEF8B75DBE4&Sec-MS-GEC-Version=1-143.0.3650.75


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

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 渠道与微软服务器通信时的网络连接超时(Connection timeout),底层原因是软件试图通过你配置的网络代理去连接微软语音接口 wss://speech.platform.bing.com,但该代理未能成功建立连接(可能代理服务未运行、端口错误、或不稳定),而非软件功能故障。

解决方案:

  1. 检查代理设置:主界面 对齐控制(Alignment) 行右侧的网络代理文本框,如果你的代理没有开启或不可用,请清空该文本框并保存(填写了无效代理会导致所有网络请求失败)。

  2. 若必须用代理:确认代理服务正在运行,且格式正确,例如 http://127.0.0.1:10808 或 socks5://127.0.0.1:端口号,端口必须与实际代理端口一致。

  3. 强制 EdgeTTS 绕过代理:在软件根目录(D:/win-pyvideotrans-v4.14/)下新建一个空文本文件,命名为 edgetts-noproxy.txt,然后重新试听/配音。

    软件会自动让 EdgeTTS 绕过代理。

  4. 若清空代理后仍超时:说明是你本机网络到微软服务器的链路问题,可尝试切换网络环境(如换用手机热点)后重试。

  5. 频繁 403 或被限流的预防:进入 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5-10。

注:边缘 TTS 为微软免费公开接口,与网络的连通性高度相关,网络不稳定时会直接超时中断。

请查阅相关文档:

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