#8345 Connection timeout, please check network stability:{'text': 'สวัสดีเพื่อนรักของฉัน ขอให้ทุกๆ วันของคุณเป็นวันที่สวยงามแล

142.249**4 Posted at: 1 hour ago

Connection timeout, please check network stability:
{'text': 'สวัสดีเพื่อนรักของฉัน ขอให้ทุกๆ วันของคุณเป็นวันที่สวยงามและมีความสุขนะ!', 'rate': '+0%', 'role': 'Premwadee(Female/TH)', 'filename': 'C:\Users\86147\AppData\Local\Temp/pyvideotrans/0-1792572465.056819.wav', 'tts_type': 0, 'language': 'th', '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 132, in run
File "videotrans\tts\_base.py", line 95, 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 161, in _exec
File "edge_tts\communicate.py", line 613, in save
File "edge_tts\communicate.py", line 588, in stream
File "edge_tts\communicate.py", line 461, 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=1024bb3c03e44f07a12b4f978fab0396&Sec-MS-GEC=CDE1A8E107ACA5B5-3C2774B4A3884E9E850ADB0F57EFB997FC1F6F26DFD0039F67BF24C9EDFCBC10&Sec-MS-GEC-Version=2-143.0.3650.75


=
system:Windows-10-10.0.22631-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/360MoveData/Users/86147/Desktop/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 连接微软服务器时的网络超时,根源通常是代理设置不当或网络不稳定(报错链路中出现了 _create_proxy_connection,说明请求走了代理)。

解决方案

  1. 强制 Edge-TTS 绕过代理(最有效)
    进入软件根目录 D:/360MoveData/Users/86147/Desktop/win-pyvideotrans-v4.16,新建一个空文本文档,命名为 edgetts-noproxy.txt(注意是全空文件,文件名不要带 .txt.txt),保存后重启软件重试。
  2. 检查主界面代理设置
    EDGE-TTS 是微软公开服务,国内一般可直连。若主界面「对齐控制」右侧的代理文本框填写了代理,可尝试清空该框并保存(尤其是当前代理节点不稳定/失效时)。
  3. 降低请求频率避免限流
    进入 菜单 → 工具 → 高级选项 → 字幕配音:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10
  4. 确认网络可用
    在浏览器直接打开 https://speech.platform.bing.com 或切换网络(如手机热点)测试,若仍超时说明本机到微软服务器链路异常。
  5. 重试时勾选「清理已生成」,避免使用上次失败的缓存。

如果按上述操作后仍反复超时,可临时改用其他支持泰语的配音渠道(如 Qwen3-TTS(内置)、OmniVoice-TTS、Confucius-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