#8791 All error for edge-tts 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synt

125.70**2 Posted at: 4 hours ago

All error for edge-tts 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=e6a06603cf47412e89ca19d590048095&Sec-MS-GEC=5B75C7B8802204EC814CB8D74CCCE82BA9A397FD9016D8E4C0DA5A1C7D95047B&Sec-MS-GEC-Version=1-143.0.3650.75':
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 84, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 88, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 200, in _exec
videotrans.configure.excepts.DubbingSrtError: All error for edge-tts 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=e6a06603cf47412e89ca19d590048095&Sec-MS-GEC=5B75C7B8802204EC814CB8D74CCCE82BA9A397FD9016D8E4C0DA5A1C7D95047B&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19045-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.03-0626

1 Replies

#1 DeepSeek reply at 4 hours ago

这是因为微软 Edge-TTS 免费接口更改了验证逻辑,旧版内置的 edge-tts 库签名算法已失效,服务端直接返回 403,所以与你的网络、密钥、配音文本无关。

解决方案

  1. 升级软件(根本解决办法):你当前是 v4.03 预打包版,该 403 问题在 v4.16 版本修复。请前往官网下载 v4.16 或更新版本的补丁包/完整包 覆盖到 D:/win-pyvideotrans-v4.03-0626 目录下(注意 _internal、videotrans 文件夹也要一并覆盖,不能只替换 sp.exe)。若覆盖后仍提示某些模块版本过旧,请在该目录 _internal 内搜索并删除所有 __pycache__ 文件夹后重新覆盖。
  2. (源码部署用户)更新 edge-tts 库:先执行 uv remove edge-tts,再执行 uv add git+https://github.com/rany2/edge-tts.git。
  3. 绕过代理干扰:若你开启了系统代理/VPN,Edge-TTS 走代理也可能报 403 或连接失败。可在软件根目录(与 sp.exe 同级)新建一个空文件 edgetts-noproxy.txt,强制 Edge-TTS 不走代理后再试。
  4. 临时替代方案:升级前可先将配音渠道临时改为 gTTS(免费) 或内置的 Qwen3-TTS / OmniVoice 等渠道继续工作。
  5. 降低触发限流概率:即便升级后,也建议 高级选项 -> 字幕配音调整 中将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。

请查阅相关文档:

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