#3898 aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host speech.platform.bing.com:443 ssl:<ssl.SSLConte

171.254* Posted at: 19 hours ago 👁19

System Error (11001): getaddrinfo failed
Traceback (most recent call last):
File "aiohttp\connector.py", line 1512, in _create_direct_connection
File "aiohttp\connector.py", line 1128, in _resolve_host
File "aiohttp\connector.py", line 1159, in _resolve_host_with_throttle
File "aiohttp\resolver.py", line 40, in resolve
File "asyncio\base_events.py", line 863, in getaddrinfo
File "concurrent\futures\thread.py", line 58, in run
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

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 992, in _tts
File "videotrans\tts\__init__.py", line 356, 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 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 1518, in _create_direct_connection
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host speech.platform.bing.com:443 ssl: [getaddrinfo failed]


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:en
root_dir:D:/TOOL/win-pyvideotrans-v3.98-0401

1 Replies

这是由于网络连接问题,导致 Edge-TTS 服务无法解析域名 speech.platform.bing.com

解决方案:

  1. 检查网络连接:确保您的计算机可以正常访问互联网。
  2. 禁用或调整代理设置

    • 如果您没有使用代理(VPN/科学上网),请确保软件主界面上的“网络代理地址”文本框是空白的。错误的代理地址会导致此错误。
    • 如果您正在使用代理,请将正确的代理地址(例如 http://127.0.0.1:10808)填入“网络代理地址”文本框。
  3. 调整 Edge-TTS 并发设置:如果网络正常,此错误也可能是由于微软服务端的临时限制。请进行以下设置以降低请求频率:

    • 点击顶部菜单 工具/选项 -> 高级选项
    • 在【字幕配音调整】部分,将 EdgeTTS配音渠道配音并发数 设置为 1
    • 配音后暂停秒 设置为 5 或更高。
  4. 临时解决方案:如果问题持续,可以暂时切换到其他配音渠道(如 Qwen-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