#7183 Cannot connect to host speech.platform.bing.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FA

150.107**9 Posted at: 1 hour ago

Cannot connect to host speech.platform.bing.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1017)')]:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'Sonia(Female/GB)', 'filename': 'C:\Users\3\AppData\Local\Temp/pyvideotrans/0-1789105606.7046077.wav', 'tts_type': 0, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
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
File "asyncio\sslproto.py", line 534, in data_received
File "asyncio\sslproto.py", line 188, in feed_ssldata
File "ssl.py", line 975, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1017)

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 230, in run
File "videotrans\tts\_base.py", line 94, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 154, in _exec
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 1187, in _create_connection
File "aiohttp\connector.py", line 1677, in _create_proxy_connection
File "aiohttp\connector.py", line 1439, in _start_tls_connection
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host speech.platform.bing.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1017)')]


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:F:/jianji/win-pyvideotrans-v4.12-0908

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 在通过代理连接微软服务器时,代理软件的证书(自签名证书)未被系统信任导致的 SSL 证书校验失败。

解决方案(按顺序尝试):

  1. 强制 Edge-TTS 绕过代理(推荐先试这个):
    在软件根目录(即 F:/jianji/win-pyvideotrans-v4.12-0908)下,新建一个空文本文件,命名为:

    edgetts-noproxy.txt

    保存后重新执行任务。

  2. 修改代理软件的证书信任设置
    你当前使用了代理(日志中显示走了 _create_proxy_connection)。请打开代理软件(如 Clash、V2Ray 等),关闭「TLS 拦截 / HTTPS 解密 / MITM」功能,或将其证书导入系统受信任根证书列表,然后重试。
  3. 清空主界面代理文本框
    在主界面「对齐控制」行右侧的网络代理输入框中,清空已填写的代理地址并保存,让 Edge-TTS 直连访问(需确保本地网络能访问 speech.platform.bing.com)。
  4. 更换配音渠道
    若以上均无效,可改用其他配音渠道,例如 Qwen-TTS(内置)F5-TTS(内置)OmniVoice-TTS 等,它们不依赖该地址。
注意:以上操作前请确保已关闭杀毒软件的 HTTPS 拦截功能,部分安全软件也会注入自签名证书。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource