#4060 aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host wss://speech.platform.bing.com/consumer/spe

112.111* Posted at: 6 hours ago 👁12

连接超时,请检查网络连接是否稳定
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 128, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

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\task\_only_one.py", line 86, in run
File "videotrans\task\trans_create.py", line 715, in dubbing
File "videotrans\task\trans_create.py", line 1015, in _tts
File "videotrans\tts\__init__.py", line 358, in run
File "videotrans\tts\_base.py", line 193, in run
File "videotrans\tts\_edgetts.py", line 66, in _create_audio_with_retry
File "asyncio\tasks.py", line 445, in wait_for
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=aa3e68e1e0184bcab433fad4985e2d82&Sec-MS-GEC=708E745798390F243522570FFE91353B98CA893173DB4FC570644C0725BAFCFA&Sec-MS-GEC-Version=1-143.0.3650.75


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.98-0410

1 Replies

这是由于 Edge-TTS 配音渠道的网络连接超时导致的。微软的服务可能因网络不稳定或并发请求过高而触发限流。

解决方案:

  1. 降低并发请求:在软件顶部菜单栏,点击 工具/选项 -> 高级选项,找到【字幕配音调整】区域。

    • 并发配音线程数 设置为 1
    • 配音后暂停秒 设置为 5 或更高。
    • EdgeTTS配音渠道配音并发数 设置为 1
  2. 检查网络连接:确保你的网络环境可以稳定访问微软的服务。如果使用了代理,请确保代理设置正确且稳定。
  3. 稍后重试:如果是临时性的网络波动或服务端问题,等待一段时间后再尝试处理。

请查阅相关文档:

Post Your Reply
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.

Related resource