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

2602**4f38 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': 'WilliamMultilingual(Male/AU)', 'filename': 'C:\Users\3\AppData\Local\Temp/pyvideotrans/0-1789103521.7162142.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

这是由于 SSL 证书验证失败导致的,根本原因是你当前网络环境中的代理/防火墙(如公司网络、某些杀毒软件或VPN)对 speech.platform.bing.com 进行了 SSL 中间人拦截,导致 Edge-TTS 无法验证微软服务器的真实证书。

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

  1. 强制 Edge-TTS 绕过代理
    在软件根目录(即 sp.exe 所在文件夹,你的路径是 F:/jianji/win-pyvideotrans-v4.12-0908)新建一个空文本文件,命名为:

    edgetts-noproxy.txt

    内容留空,保存后重启软件再试。这会强制 Edge-TTS 不走系统代理直连。

  2. 检查并关闭代理软件的系统代理模式
    如果你正在使用 Clash/V2Ray 等代理工具,请将其系统代理模式临时关闭(或切换为「直连/规则模式」),因为 speech.platform.bing.com 国内可直连,无需代理。
  3. 关闭杀毒软件的 HTTPS 扫描
    360、火绒、卡巴斯基等杀软的「HTTPS 流量扫描」功能会替换证书,请将该功能关闭,或将 F:/jianji/win-pyvideotrans-v4.12-0908 整个目录加入白名单。
  4. 更换配音渠道(推荐备选)
    如果上述方法无效,可改用其他配音渠道,例如:

    • Qwen3-TTS(内置):支持中英日韩等,优先使用 GPU
    • ChatterBox(内置):支持多语言,推荐度较高
    • 或使用收费渠道如 豆包语音合成2.0Qwen-TTS(bailian)

请查阅相关文档:

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