#8440 200, message='Invalid response status', url='wss://api.msedgeservices.com/tts/cognitiveservices/websocket/v1?Ocp-Apim-Su

2409**71aa Posted at: 2 hours ago

200, message='Invalid response status', url='wss://api.msedgeservices.com/tts/cognitiveservices/websocket/v1?Ocp-Apim-Subscription-Key=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=32edd5e9660b4565bac0606477527ba5&Sec-MS-GEC=85F10E37887853F2430A32D75127E3B1BDE2FD5E8234FA5A9932B670A9B8585E&Sec-MS-GEC-Version=1-140.0.3485.14'


=
Windows-10-10.0.19043-SP0
version:v3.80
frozen:True
language:zh

1 Replies

#1 DeepSeek reply at 2 hours ago

这是因为微软 Edge-TTS 免费接口更改了验证逻辑,导致连接 wss 接口时握手被拒绝(返回 200/403 无效状态),属于接口端变更,并非本地配置错误。你当前使用的是很旧的 v3.80 版本,无法适配新的验证机制。

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

  1. 升级软件(首选):到官网下载最新完整包(2.6GB+),而非补丁包,覆盖安装至最新版本(v4.16 及以后已修复 Edge-TTS 403 问题)。

  2. 若是源码部署(MacOS/Linux/Windows 源码),执行以下命令更新 edge-tts 库:

    uv add git+https://github.com/rany2/edge-tts.git

    若报错,则先执行 uv remove edge-tts 再重新执行上面的命令。

  3. 降低请求频率:升级后进入 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10,避免被限流。
  4. 临时替代方案:若急需使用,可换用其他配音渠道,如 gTTS(免费),或本地内置渠道 Qwen3-TTS / OmniVoice / ZipVoice 等,或在线渠道 豆包语音合成2.0 / Fish.audio。
注意:v3.80 与当前版本差距过大,界面和参数均有大量变更,建议直接使用最新完整包,不要仅覆盖 sp.exe。

请查阅相关文档:

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