#7923 连接超时,请检查网络连接是否稳定:{'text': 'Hello, my dear friend. I hope your every day is beautiful and enjoyable!', 'rate': '+0%', 'ro

155.117**2 Posted at: 1 hour ago

连接超时,请检查网络连接是否稳定:
{'text': 'Hello, my dear friend. I hope your every day is beautiful and enjoyable!', 'rate': '+0%', 'role': 'Yan(Female/HK)', 'filename': 'C:\Users\L\AppData\Local\Temp/pyvideotrans/0-1791644728.6593213.wav', 'tts_type': 0, 'language': 'en', '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 233, in run
File "videotrans\tts\_base.py", line 100, 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=b10edf60b4704f979aeb41cdf77f8a48&Sec-MS-GEC=FB7FA2002540B195FB7616AD1FBEA29A7D48C8A83E98F356EC6EA88E13F73F3A&Sec-MS-GEC-Version=1-143.0.3650.75


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/fy/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 渠道通过代理连接微软服务器(wss://speech.platform.bing.com)超时导致的,堆栈中 _create_proxy_connection 已表明请求走了代理,代理节点不通或不稳定即会报此错。

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

  1. 强制 EdgeTTS 绕过代理:在软件根目录(D:/fy/win-pyvideotrans-v4.11)新建一个空文本文件,命名为 edgetts-noproxy.txt(注意必须是空文件),然后重启软件重试。EdgeTTS 的接口在国内可直连,无需代理。
  2. 清空主界面代理:如果主界面 Alignment(对齐)行右侧的代理文本框填了地址,且不是必须使用,将其清空并保存,避免无效代理干扰。
  3. 若确实需要使用代理(前面已勾选):请确认代理服务已启动、端口正确,格式形如 http://127.0.0.1:10808 或 socks5://127.0.0.1:端口,并切换为稳定的节点后重试。
  4. 降低并发避免限流连带失败:进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。
  5. 重试仍失败:Edge-TTS 为微软免费接口,网络波动属正常,可稍后重试;若持续不可用,建议更换为其他配音渠道(如 Qwen3-TTS、ChatterBox 等内置渠道)。

注意:此文件是针对 EdgeTTS 专用,仅需创建一个空文件即可,不要写入内容。

请查阅相关文档:

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