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

210.79* Posted at: 4 hours ago 👁4

系统错误 (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 配音渠道时,因网络连接问题(特别是与微软服务的连接)导致的错误。

核心原因:软件无法连接到微软的语音合成服务 speech.platform.bing.com。错误代码 10013 通常与系统防火墙、网络代理设置或本地网络环境阻止了特定端口的连接有关。

解决方案

  1. 检查网络代理:如果你使用了网络代理(VPN/科学上网工具),请确保代理设置正确,并且代理允许访问微软的服务。在软件“设置”->“网络代理”中,可以尝试配置代理或直接清空代理设置后重试。
  2. 调整配音并发设置:微软服务有并发限制。请在“高级选项”中,将“同时配音线程数”设置为 1,并将“配音后暂停秒数”设置为 5 或更高,以降低请求频率。
  3. 临时关闭防火墙/安全软件:尝试暂时关闭 Windows 防火墙或第三方杀毒/安全软件,排除其拦截连接的可能性,测试后再重新配置规则。
  4. 更换配音渠道:如果以上方法无效,可以暂时切换到其他配音渠道,例如使用本地 TTS 模型(如 F5-TTS、CosyVoice)或其他在线 TTS 服务(如 OpenAI TTS、Azure TTS)。

请查阅相关文档

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