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

81.28**5 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=80607aee769d4170885faf2eb7d8bfeb&Sec-MS-GEC=C17650AE8E021454E8922EE3F1F5860B0A87749E8BF0290DE7A2C1E2CB516C36&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'en-US-SteffanNeural'}
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 119, in run
File "videotrans\tts\_base.py", line 93, 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=80607aee769d4170885faf2eb7d8bfeb&Sec-MS-GEC=C17650AE8E021454E8922EE3F1F5860B0A87749E8BF0290DE7A2C1E2CB516C36&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'en-US-SteffanNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: G:/海外社媒/天珠介绍.mp4,
输出结果保存到文件夹: G:/海外社媒/_video_out/天珠介绍-mp4,
临时文件夹: D:/pyvideotrans/tmp/11092/b61c18399e
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 未选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Steffan(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:26800
video_duration_ms=270067


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:Edge-TTS 403 是微软免费接口的验证逻辑变更导致的,与视频、字幕、翻译渠道无关。v4.14 内置的 edge-tts 库版本过旧,无法生成有效的 Sec-MS-GEC 签名,所以每次请求都被拒绝,最终“配音全部失败”。

解决方案(按顺序处理):

  1. 升级软件(最关键):Edge-TTS 403 已在 v4.16 修复。请下载最新完整包或补丁包覆盖到 D:/pyvideotrans(注意补丁包内的 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. 让 Edge-TTS 绕过代理:你有代理 http://127.0.0.1:26800,Edge-TTS 走代理容易触发拒绝。在软件根目录 D:/pyvideotrans 下新建一个空文件,文件名为:

    edgetts-noproxy.txt

    (注意后缀为 .txt,且不要有隐藏后缀问题,可用“显示文件扩展名”确认)。这样可强制 Edge-TTS 不走代理。

  4. 降低请求频率(避免封禁):菜单 → 工具/选项 → 高级选项 → 字幕配音:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10
  5. 重试前勾选“清理已生成”,避免复用上次失败的缓存。

如果暂时不想升级,可临时改用其他配音渠道:gTTS(免费)(需代理,效果一般),或中文/英文效果更好的 豆包语音合成2.0、Qwen3-TTS(内置)、OmniVoice(内置) 等(内置渠道首次使用需在线下载模型)。

请查阅相关文档:

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