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

111.16**8 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=5a229648c2794174a44fd45215e5c099&Sec-MS-GEC=853AA128027F23A1B216772025FB39BB6548EB7E247F67622574AA3DCF6B105B&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'en-NG-AbeoNeural'}
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=5a229648c2794174a44fd45215e5c099&Sec-MS-GEC=853AA128027F23A1B216772025FB39BB6548EB7E247F67622574AA3DCF6B105B&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'en-NG-AbeoNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/A/Desktop/e2589178c143efb167884eda19a8a680.mp4,
输出结果保存到文件夹: C:/Users/A/Desktop/_video_out/e2589178c143efb167884eda19a8a680-mp4,
临时文件夹: D:/100lai-7a59129f/win-pyvideotrans-v4.10/tmp/22488/f43177b51a
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Abeo(Male/NG), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/100lai-7a59129f/win-pyvideotrans-v4.10

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 免费接口验证逻辑变更导致的 403 拦截,并非配置问题;你当前使用的是 v4.10 版本,该版本内置的 edge-tts 库已过期失效。

解决方案(按优先级)

方案一:升级软件(推荐,根治)

  1. 访问 https://pyvideotrans.com/downpackage 下载最新完整包(2.6GB+,不是 260MB 补丁包)
  2. 解压到简短英文路径(如 D:\pyVideoTrans),不要覆盖安装在含中文或空格的目录
  3. 若已有旧版,可将旧版 videotrans/params.json、cfg.json 复制到新目录保留配置
  4. 新版本(v4.16 及以上)已修复该 403 问题

方案二:更换配音渠道(立即可用)

若暂时不想升级,在主界面「配音渠道」下拉中换为以下任一渠道,目标语言为英语均可正常使用:

渠道说明
Qwen3-TTS(内置)首次使用需下载模型,支持英文
OmniVoice(内置)支持 600 种语言,效果好
ChatterBox(内置)欧洲语言效果好
ZipVoice中英(内置)中英双语

注意:更换渠道后需在「配音角色」下拉重新选择音色,并勾选主界面的 清理已生成,避免复用已产生的失败缓存。

方案三:若你是源码部署(而非 sp.exe 预打包版)

执行以下命令更新 edge-tts 库:

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

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

补充:降低被限流概率

即使升级后,Edge-TTS 高频调用仍可能触发限流。进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。

请查阅相关文档:

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