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

240e**2461 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=72ede11ca7ef4d10a02485d8c213959c&Sec-MS-GEC=E237B2E9EA88CBF7818F63DDEFDAD5CE1A1325F67E16B2239CB6CCDCD3338144&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'vi-VN-HoaiMyNeural'}
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=72ede11ca7ef4d10a02485d8c213959c&Sec-MS-GEC=E237B2E9EA88CBF7818F63DDEFDAD5CE1A1325F67E16B2239CB6CCDCD3338144&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'vi-VN-HoaiMyNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/Users/TIAN/Desktop/9aeeacb733981adadb162a89b75c24ff.mp4,
输出结果保存到文件夹: D:/Users/TIAN/Desktop/_video_out/9aeeacb733981adadb162a89b75c24ff-mp4,
临时文件夹: D:/Users/TIAN/Desktop/pyvideotrans-v4.12-0913/tmp/15044/9d20218efa
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:越南语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:HoaiMy(Female/VN), 配音语言:越南语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4
video_duration_ms=154642


=
system:Windows-10-10.0.22631-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/Users/TIAN/Desktop/pyvideotrans-v4.12-0913

1 Replies

#1 DeepSeek reply at 2 hours ago

这是微软 Edge-TTS 免费接口的验证逻辑变更导致的 403 拦截,与你的配置(越南语 HoaiMy 音色)无关。该问题已在 v4.16 修复。

解决方案:

  1. 升级到 v4.16:下载最新补丁包或完整包覆盖到当前软件目录(D:/Users/TIAN/Desktop/pyvideotrans-v4.12-0913),务必全部覆盖 sp.exe、_internal、videotrans 文件夹。
  2. 若为源码部署,额外执行命令更新 edge-tts:

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

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

升级后如仍偶发 403/断音,再做以下降频处理:

  • 进入 菜单 → 工具 → 高级选项 → 字幕配音,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。

临时替代方案:可先用其他配音渠道,如 gTTS(免费)(越南语支持),或将配音渠道改为其它在线/本地渠道。

请查阅相关文档:

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