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

69.8**1 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=c58634af6a6e4993b58a28b18806cce1&Sec-MS-GEC=A0187399DB9F02DD5D1FD6A70905CE83B2D7B535E3A60D752C6E85D21F08700F&Sec-MS-GEC-Version=1-143.0.3650.75':
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 83, 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 184, in run
File "videotrans\tts\_base.py", line 87, 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=c58634af6a6e4993b58a28b18806cce1&Sec-MS-GEC=A0187399DB9F02DD5D1FD6A70905CE83B2D7B535E3A60D752C6E85D21F08700F&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.22621-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:你的软件版本为 v4.01,远低于 v4.16。微软 Edge-TTS 免费接口已更改验证逻辑(当前请求已带 Sec-MS-GEC 校验),旧版内置的 edge-tts 库无法通过验证,因此固定返回 403 Invalid response status;这不是配置问题,仅调整参数无法修复。

解决方案:

  1. 升级到 v4.16 或更高版本

    • 你是 Windows 预打包版(frozen:True),请到 https://pyvideotrans.com/downpackage 下载最新的 完整包(2.6GB+),解压覆盖到原目录(补丁包需覆盖 sp.exe、_internal、videotrans 全部内容,不能只替换 sp.exe)。
    • 升级不会丢失配置:videotrans/params.json、cfg.json 会自动保留。
    • 若覆盖后仍提示模块版本过旧,请在 _internal 文件夹内搜索 __pycache__,删除所有同名文件夹后重新覆盖。
  2. 升级后降低请求频率,避免再次被限流
    菜单 → 工具/选项 → 高级选项 → 字幕配音调整:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10
  3. 若仍 403,检查代理
    代理节点 IP 不干净也会被微软拦截。可在软件根目录新建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理直连;或清空主界面「网络代理」框后重试。
  4. 临时替代方案
    若急需出片,可先将配音渠道换为 gTTS(免费)(国内需代理)或其他本地内置渠道(如 Qwen3-TTS、OmniVoice 等),但注意 v4.01 对上述新渠道支持有限,建议仍以升级为主。

补充说明:日志中的 RuntimeError: no running event loop 是旧版在 403 异常路径上暴露出的次生错误,升级后一并消失,无需单独处理。

请查阅相关文档:

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