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

106.46**6 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=072449c7efae4edd956a9bca3b444e02&Sec-MS-GEC=60543B72EA61D4564D4FA29EF379503EB39526CE8241E2461D7D84CC1EBA7059&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'zh-CN-YunyangNeural'}
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 230, in run
File "videotrans\tts\_base.py", line 94, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 228, 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=072449c7efae4edd956a9bca3b444e02&Sec-MS-GEC=60543B72EA61D4564D4FA29EF379503EB39526CE8241E2461D7D84CC1EBA7059&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'zh-CN-YunyangNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/搬运素材/恐龙派对/6.mp4,
输出结果保存到文件夹: D:/搬运素材/恐龙派对/_video_out/6-mp4,
临时文件夹: D:/换声音/tmp/27140/32d774d4f4
已选 清理已存在
已启用CUDA加速
已选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
发音语言和目标语言相同,不翻译字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/换声音

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 免费接口的验证逻辑(Sec-MS-GEC)已变更,导致微软服务器返回 403 拒绝连接。你当前使用的是 v4.12 冻结预打包版,该问题已在 v4.16 中修复。

解决方案(Windows 预打包版):

  1. 前往 https://pyvideotrans.com/downpackage 下载最新完整包,或下载 v4.16 及以上的补丁包。
  2. 用补丁包内的全部文件和文件夹(尤其是 sp.exe、_internal、videotrans)覆盖旧版本目录。
  3. 若覆盖后仍提示模块版本过旧,在旧版本 _internal 文件夹内搜索 __pycache__,删除所有搜到的文件夹后再重新覆盖。
  4. 重启软件后再次执行配音。

如果是源码部署版(MacOS/Linux/Windows),请执行:

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

若该命令报错,先执行 uv remove edge-tts,再重新执行上面的命令。

临时规避或降低 403 概率:

  1. 若升级后仍偶发 403,进入 菜单-工具/选项-高级选项-字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10,降低请求频率。
  2. 如急需出片,可临时改用其他配音渠道:Qwen3-TTS(内置)、OmniVoice(内置)、ChatterBox(内置) 或 豆包语音合成2.0(需 API Key)。
注意:本次任务已因报错中断,重新执行时请勾选 清理已生成。

请查阅相关文档:

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