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

14.112**7 Posted at: 2 hours ago

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

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/包先生的笔记本/Desktop/宠物玩具狗玩具小黄鸭毛绒玩具发声玩具耐咬磨牙宠物玩具狗狗玩具_no_sub.mp4,
输出结果保存到文件夹: C:/Users/包先生的笔记本/Desktop/_video_out/宠物玩具狗玩具小黄鸭毛绒玩具发声玩具耐咬磨牙宠物玩具狗狗玩具_no_sub-mp4,
临时文件夹: C:/shipinfanyi/tmp/25448/ea5d25cb72
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Aria(Female/US), 配音语言:英语, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4


=
system:Windows-10-10.0.26200-SP0
version:v4.10
frozen:True
language:zh
root_dir:C:/shipinfanyi

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:微软已更改 Edge-TTS 免费接口的鉴权验证逻辑,旧版内置的 edge-tts 库无法通过验证,返回 403(Invalid response status)。您当前版本为 v4.10,该问题在 v4.16 中已修复。

解决方案:

  1. 升级到 v4.16

    • 下载 v4.16 补丁包或完整包,将包内所有文件和文件夹完整覆盖到现有目录(尤其 sp.exe、_internal、videotrans 三个必须覆盖),仅替换 sp.exe 无效。
    • 覆盖前建议删除旧目录 _internal 内搜索到的所有 __pycache__ 文件夹,避免残留缓存。
    • 源码部署(Mac/Linux/Windows源码版)执行:uv add git+https://github.com/rany2/edge-tts.git;若报错,先执行 uv remove edge-tts 再重新执行上述命令。
  2. 升级后仍出现 403 时的补充处理

    • 进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10,降低请求频率。
    • 若使用了网络代理,在软件根目录(sp.exe 所在文件夹)新建空文件 edgetts-noproxy.txt,强制 EdgeTTS 绕过代理。
  3. 临时替代方案(不升级时)

    • 主界面 字幕配音 渠道改为 Qwen3-TTS(内置) 或 OmniVoice-TTS(首次使用需下载模型),或改用 gTTS(免费)。注意 clone 角色仅在这些克隆渠道下可用。

补充:您当前路径 C:/Users/包先生的笔记本/Desktop/... 含中文,虽非本次 403 的直接原因,但建议后续将视频移至浅层纯英文路径(如 D:/videos/)处理,可避免 ffmpeg 相关异常。

请查阅相关文档:

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