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

2001**43b0 Posted at: 1 hour ago

Connection timeout, please check network stability:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'C:\Users\Baasir\AppData\Local\Temp/pyvideotrans/0-1790499286.7855623.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=0144fc0c66034d92bae7cb5c20af225a&Sec-MS-GEC=8FE0CCFD53E741518CD20C36F5234E3D2E11F53D41038F4DD7BBA8734FF114CD&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(免费) 渠道连接微软语音服务器超时导致的,与软件本身无关,属于网络连通性问题。

核心原因:
Edge-TTS 走的是微软免费公开接口 wss://speech.platform.bing.com,该连接为 WebSocket 长连接。报错 ConnectionTimeoutError 说明软件无法在超时时间内建立到微软服务器的 TLS 连接,原因通常是:

  1. 未开启代理,或代理不支持 WebSocket 长连接;
  2. 已填写代理但代理地址/端口无效或代理服务未启动;
  3. 网络不稳定,或微软接口在该时段被限流。

解决步骤:

  1. 检查主界面对齐控制(Alignment)行右侧的网络代理文本框:确认填写的代理地址、端口正确(形如 http://127.0.0.1:10808),且代理软件已运行。若不使用代理,请将文本框清空再保存。
  2. 由于 Edge-TTS 是微软境外服务,国内使用建议开启代理并确保代理支持 WebSocket。
  3. 如果代理正常仍超时,可尝试在软件根目录 D:/win-pyvideotrans-v4.14 下新建一个空白文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理直连再试。
  4. 若 Edge-TTS 始终不稳定,建议更换配音渠道,如 Qwen3-TTS(内置)、F5-TTS(内置)、OmniVoice-TTS 等本地渠道,或 豆包语音合成2.0 等云 API。
  5. 若使用 Edge-TTS 频繁报错,请进入 菜单 → 工具 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。

请查阅相关文档:

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