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

2409**e0a9 Posted at: 1 hour ago

配音全部失败 :403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=f4db1e66494b4503ab23ca916cc03a2c&Sec-MS-GEC=EAAB488092ECC0ED7A2833C88E5BF6657A860FB84339F2FCFCB70A398A3DC802&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'en-HK-YanNeural'}:
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 21, in run
File "videotrans\tts\__init__.py", line 207, 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 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=f4db1e66494b4503ab23ca916cc03a2c&Sec-MS-GEC=EAAB488092ECC0ED7A2833C88E5BF6657A860FB84339F2FCFCB70A398A3DC802&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'en-HK-YanNeural'}


=
system:Windows-10-10.0.26300-SP0
version:v4.05
frozen:True
language:zh
root_dir:D:/Wroking/win-pyvideotrans-v4.05-0711

1 Replies

#1 DeepSeek reply at 1 hour ago

这是微软 Edge-TTS 免费接口的验证机制发生变更,导致旧版 edge-tts 库被 403 拦截。你的版本 v4.05 过旧,无法绕过该验证。

解决方案(任选其一,优先推荐第一种):

  1. 升级到最新版(关键):前往下载页获取最新完整包(约 2.7GB),完整解压覆盖旧目录。若你只下载 260MB 补丁包,必须覆盖到已有的完整安装目录内,且要覆盖补丁包中的所有文件和文件夹(尤其是 sp.exe、_internal 和 videotrans 文件夹),不能只替换 sp.exe。

    • 若覆盖后仍提示模块版本过旧,请在旧版本的 _internal 文件夹内搜索 __pycache__,删除所有搜索结果,再重新覆盖。
  2. 源码部署版本:在项目目录执行以下命令更新 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(内置)(内置渠道首次使用需下载模型)。
  5. 代理问题:如果你填写了网络代理,Edge-TTS 可能受影响。可在软件根目录新建空文件 edgetts-noproxy.txt,强制 Edge-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