#7532 Connection timeout, please check network stability:{'text': 'Hello, my dear friend, I hope every day of yours is wonderf

2406**531c Posted at: 1 hour ago

Connection timeout, please check network stability:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'Yan(Female/HK)', 'filename': 'C:\Users\blue\AppData\Local\Temp/pyvideotrans/0-1790008691.5960617.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 118, in run
File "videotrans\tts\_base.py", line 92, 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=c352a0d61f6f4994b6ba7e0cb0059318&Sec-MS-GEC=A0B7B1FCDBF2B7F5EC66B83FF49BA6F2D520FC9DF84E10DEF99A6C309A33AF56&Sec-MS-GEC-Version=1-143.0.3650.75


=
system:Windows-10-10.0.22631-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/blue/桌面/win-pyvideotrans-v4.13

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 通过代理连接微软服务器时超时导致的,根因是代理链路不稳定或 Edge-TTS 走了不稳定的代理。

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

  1. 强制 Edge-TTS 绕过代理(最推荐)
    在软件根目录(sp.exe 所在文件夹,即 D:/blue/桌面/win-pyvideotrans-v4.13)新建一个空文本文件,命名为:

    edgetts-noproxy.txt

    文件名注意是全小写、扩展名为 .txt,内容留空即可。重启软件后重试。

  2. 检查主界面代理设置
    在主界面「对齐」行右侧的代理文本框中,若填写了代理地址(如 http://127.0.0.1:10808),请确认代理服务正在运行且端口正确。若你的网络能直连 Edge-TTS,请清空该代理框后保存再试。
  3. 降低并发、增加间隔(避免触发限流加剧超时)
    菜单 → 工具/选项 → 高级选项 → 字幕配音调整:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10
  4. 更换配音渠道
    若代理始终不稳定,可换用 gTTS(免费),或本地内置渠道(如 OmniVoice-TTSQwen3-TTS)。

注:报错中的临时文件路径为 C:\Users\blue\AppData\Local\Temp/pyvideotrans/,这是试听/配音产生的临时 wav,非问题根源,无需处理。

请查阅相关文档:

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