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

210.79* Posted at: 5 hours ago 👁3

系统错误 (10013):Connect call failed ('198.18.0.41', 443):
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 127, 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 1248, in _wrap_create_connection
File "aiohappyeyeballs\impl.py", line 122, in start_connection
File "aiohappyeyeballs\impl.py", line 73, in start_connection
File "aiohappyeyeballs\impl.py", line 208, in _connect_sock
File "asyncio\selector_events.py", line 499, in sock_connect
File "asyncio\selector_events.py", line 534, in _sock_connect_cb
OSError: [Errno 10013] Connect call failed ('198.18.0.41', 443)

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 17, in run
File "videotrans\tts\__init__.py", line 321, in run
File "videotrans\tts\_base.py", line 178, in run
File "videotrans\tts\_edgetts.py", line 68, 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: [Connect call failed ('198.18.0.41', 443)]


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:zh
root_dir:C:/Users/Administrator/Desktop/翻译

1 Replies

这是 Edge-TTS 配音渠道连接微软服务器失败导致的网络错误。

原因分析:
错误信息 Connect call failed ('198.18.0.41', 443) 表明软件尝试连接微软的 TTS 服务地址 speech.platform.bing.com 失败。这通常是由于网络环境问题,例如系统代理设置、防火墙或本地网络策略阻止了连接。

解决方案:

  1. 检查网络代理设置:在 pyVideoTrans 的“设置”->“网络代理”中,确认代理设置是否正确。如果你没有使用代理,请确保此处为空或设置为“不使用代理”。
  2. 调整配音并发设置:微软服务有频率限制。请进入“高级选项”,将“同时配音线程数”设置为 1,并将“配音后暂停秒数”设置为 5-10 秒,以降低请求频率。
  3. 检查防火墙/安全软件:暂时禁用 Windows 防火墙或第三方安全软件,测试是否是其阻止了软件的网络连接。
  4. 尝试系统代理:如果上述方法无效,可以尝试在 Windows 系统设置中配置一个可用的全局代理,然后重启软件。

如果问题依旧,可能是临时的网络波动或微软服务端问题,可稍后再试。

请查阅相关文档:

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

Similar issues already exist