#4525 aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl:<ssl.SSLContext

2402:a7c0* Posted at: 1 hour ago 👁17

系统错误 (None):None:
Traceback (most recent call last):
File "aiohttp\connector.py", line 1263, in _wrap_create_connection
File "asyncio\base_events.py", line 1103, in create_connection
File "asyncio\base_events.py", line 1133, in _create_connection_transport
ConnectionResetError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 345, in run
File "videotrans\tts\_base.py", line 181, 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 725, in _connect_and_send_request
File "aiohttp\connector.py", line 622, in connect
File "aiohttp\connector.py", line 1189, in _create_connection
File "aiohttp\connector.py", line 1561, in _create_direct_connection
File "aiohttp\connector.py", line 1530, in _create_direct_connection
File "aiohttp\connector.py", line 1271, in _wrap_create_connection
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl: [None]


=
system:Windows-10-10.0.19041-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/下载/win-pyvideotrans-v3.99-0508

1 Replies

Edge-TTS 连接 speech.platform.bing.com 失败,很可能是网络问题导致(如国内网络限制或代理未配置正确)。

  1. 配置网络代理:在主界面“网络代理地址”中填入您的有效代理地址(例如 http://127.0.0.1:7890),确保能访问 speech.platform.bing.com
  2. 降低并发与增加暂停:菜单 → 工具 → 高级选项 → 将“并发配音线程数”设为 1,“配音后暂停秒数”设为 5-10 秒,避免微软限流。
  3. 测试连接:若仍失败,可更换其他配音渠道(如 OpenAI TTS、火山语音)暂时绕过该问题。

请查阅相关文档:

Post Your Reply