#7655 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-1790559450.847566.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=db22dc1ab4c9453eb327b93d05d19060&Sec-MS-GEC=FDE97160CD01C1E603A9BB837BA781C3B3215A6D2C073A691575B8CF5C924D0A&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 渠道连接微软服务器超时导致的。报错显示无法连接到 wss://speech.platform.bing.com,属于网络连接问题(国内网络访问微软接口不稳定,或代理配置失效)。

解决方案(按顺序尝试):

  1. 检查网络代理
    主界面 对齐控制 行右侧的网络代理文本框,确认填写的代理地址格式正确(如 http://127.0.0.1:10808),确保代理服务已运行且端口正确。如果代理无效或未开代理,请清空该文本框。无效代理会导致所有网络请求失败。
  2. 强制 Edge-TTS 绕过代理
    在软件根目录 D:/win-pyvideotrans-v4.14/ 下新建一个空文本文件,命名为 edgetts-noproxy.txt(内容留空即可),保存后重启软件。这会强制 Edge-TTS 不走代理直连微软服务器。
  3. 降低并发与增加间隔,避免限流
    进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10
  4. 若仍超时,更换配音渠道
    Edge-TTS 是免费公共接口,网络不佳时极不稳定。建议改用其他渠道:

    • 免费:gTTS(免费)(国内需科学上网)
    • 本地内置:Qwen3-TTS(内置)、ChatterBox(内置)、ZipVoice(内置) 等,首次使用会自动下载模型,之后完全离线运行不受网络影响。
提示:若你正在做语音克隆(clone 角色),推荐使用 OmniVoice-TTS / Qwen-TTS 等内置克隆渠道,稳定性优于 Edge-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