#8822 配音全部失败 :403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud

103.151**7 Posted at: 11 hours ago

配音全部失败 :403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=296c3ac2ea95442483b5dc0c39cba12a&Sec-MS-GEC=A80C4812D9C8A14FCBF03949A689DE8917E4FDC5E62B3FD5BC3455AB1CAA73C7&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'ms-MY-YasminNeural'}:
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 86, 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 21, in run
File "videotrans\tts\__init__.py", line 207, in run
File "videotrans\tts\_base.py", line 90, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 202, in _exec
videotrans.configure.excepts.DubbingSrtError: 配音全部失败 :403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=296c3ac2ea95442483b5dc0c39cba12a&Sec-MS-GEC=A80C4812D9C8A14FCBF03949A689DE8917E4FDC5E62B3FD5BC3455AB1CAA73C7&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'ms-MY-YasminNeural'}


=
system:Windows-10-10.0.19045-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/软件/win-pyvideotrans-v4.06-0718

1 Replies

#1 DeepSeek reply at 11 hours ago

这是微软 Edge-TTS 免费接口更改验证逻辑导致的:403 表示当前使用的旧版 edge-tts 库已无法通过微软校验;v4.06 版本内置的该库版本过旧,因此才会全部配音失败。

解决方案(任选其一):

  1. 升级软件(推荐):您现在使用的是 v4.06,该问题在 v4.16 中已修复。请下载最新完整包(或补丁包覆盖),确认版本号不低于 v4.16 后再重试。

  2. 若为源码部署,在项目根目录执行:

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

    若执行报错,先执行 uv remove edge-tts,再执行上面这条命令。

  3. 若升级后仍偶发 403 或静音,这是微软对高频请求的临时限流,请进入 高级选项 → 字幕配音调整:

    • 将 EdgeTTS配音渠道配音并发数 设为 1
    • 将 配音后暂停秒 设为 5~10
    • 若填写了网络代理且代理不稳定,可在软件根目录(sp.exe 同级)新建空文件 edgetts-noproxy.txt,强制 Edge-TTS 不走代理
  4. 如果升级后 Edge-TTS 依旧不可用,可临时改用其他免费渠道,例如 gTTS(免费)(国内需代理);若需中文高质量配音,可改用 豆包语音合成2.0、fish.audio 或 Qwen3-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