#1032 Edge-TTS无法使用了(附解决办法),原因是微软网站SSL证书今日到期了,这世界是个草台班子

39.87* Posted at: 5 days ago 👁123

Admin

Edge-tts对应的后端接口域名 api.msedgeservices.com 的SSL证书于今日到期了,因此无法使用了,浏览器访问该接口域名报错信息如下

image

  您的连接不是私密连接
攻击者可能会试图从 api.msedgeservices.com 窃取您的信息(例如:密码、消息或信用卡信息)。详细了解此警告
net::ERR_CERT_DATE_INVALID
Subject: www.msedgeservices.com
Issuer: Microsoft Azure ECC TLS Issuing CA 03
Expires on: 2025年10月17日
Current date: 2025年10月17日

证书信息


源码部署版解决方法

打开该文件 虚拟环境/Lib/site-packages/edge_tts/communicate.py 第442行 ssl=ssl_ctx 改为 ssl=False,暂时可解决

3 Replies

这怎么解决

windows的使用怎么解决

源码部署版可按照说明修改,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.

Donate: https://ko-fi.com/jianchang512

Trending Questions