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

223.74**6 Posted at: 1 hour 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=25d58b3bf648446fa2cf2c1ff70f1781&Sec-MS-GEC=03855276C0DCA27E0B12BD2B9BFC4E674DC278817902E650D42D473BB105E887&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=25d58b3bf648446fa2cf2c1ff70f1781&Sec-MS-GEC=03855276C0DCA27E0B12BD2B9BFC4E674DC278817902E650D42D473BB105E887&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:C:/win-pyvideotrans-v4.03

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于 Edge-TTS 微软免费接口更改了验证逻辑,导致旧版本请求会被微软服务器拒绝并返回 403 Invalid response status。你目前使用的 v4.03 版本过旧,无法兼容新的验证机制。

解决方案:

  1. 升级到 v4.16(根本解决)

  2. 若为源码部署版(MacOS/Linux/Windows 源码)
    在项目目录执行:

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

    若报错,先执行:

    uv remove edge-tts

    再重新执行上面的更新命令。

  3. 降低请求频率(辅助缓解)
    进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10

    这样可以减少短时间高频请求被封的几率。

  4. 若代理导致问题
    在软件根目录(sp.exe 所在文件夹)新建一个空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理。
  5. 临时备用方案
    若急需使用,可先改用 gTTS(免费) 渠道配音(国内需科学上网),或使用支持克隆的本地内置渠道如 Qwen3-TTS、F5-TTS 等。

请查阅相关文档:

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