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

2408**fbbb 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=364e440a46f34c9daf08ee15d465142d&Sec-MS-GEC=5343576939B5B6505C35BB1E4D32BA917DB1AB02C21E6CB5B6B81AA480592B75&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'ru-RU-SvetlanaNeural'}
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 232, 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=364e440a46f34c9daf08ee15d465142d&Sec-MS-GEC=5343576939B5B6505C35BB1E4D32BA917DB1AB02C21E6CB5B6B81AA480592B75&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'ru-RU-SvetlanaNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/84988/Desktop/MQ1mT73Yeks5NWSOApr_326307989593_mp4_264_ld.mp4,
输出结果保存到文件夹: C:/Users/84988/Desktop/视频翻译工具视频/edgetts-noproxy.txt/20261005_7f1db5c798516868_2987904654941857_519775407824766_published_mp4_264_hd_taobao-mp4/MQ1mT73Yeks5NWSOApr_326307989593_mp4_264_ld-mp4,
临时文件夹: D:/视频英文翻译工具/模型/tmp/28796/d0fe304c0d
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:俄语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Svetlana(Female/RU), 配音语言:俄语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 不嵌入字幕
代理地址:http://127.0.0.1:9674
video_duration_ms=10033


=
system:Windows-10-10.0.26300-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/视频英文翻译工具/模型

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 微软免费接口验证逻辑变更导致的。当前版本 v4.12 内置的 edge-tts 库已无法通过微软的 Sec-MS-GEC 校验,因此返回 403;与配音角色 ru-RU-SvetlanaNeural 及字幕内容无关。

解决方案

1. 升级到 v4.16 或更新版本(根本解决方法)

  • 预打包版:下载最新的 完整包(2.6GB+)或 补丁包 覆盖到原目录。覆盖时必须连同 _internal、videotrans 文件夹一起替换,不能只替换 sp.exe。
  • 源码部署版(Mac/Linux/Windows 源码)执行:
uv remove edge-tts
uv add git+https://github.com/rany2/edge-tts.git

2. 若升级后仍出现 403,按顺序排查

  • 主界面「网络代理」当前填的是 http://127.0.0.1:9674。若该节点 IP 不干净,同样会被微软拦截,请尝试:清空代理后重试,或切换其他节点。
  • 在软件根目录(sp.exe 同级)新建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理直连。
  • 降低请求频率:高级选项 → 字幕配音调整,把 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。

3. 临时替代方案(不想升级时)

将配音渠道换成 gTTS(免费) 或其他内置渠道(如 Qwen3-TTS、F5-TTS、OmniVoice,支持俄语),可绕开 Edge-TTS 接口限制。但 v4.12 已较旧,仍建议升级。

请查阅相关文档:

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