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

2a11**302e 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=984db66affb047df9b84e724af39b830&Sec-MS-GEC=B30E6D8F556D6AD067461A46B3FDC86CDB3F2F9D90E4B29BC81690A4094EF602&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'ru-RU-DmitryNeural'}
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 118, in run
File "videotrans\tts\_base.py", line 92, 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=984db66affb047df9b84e724af39b830&Sec-MS-GEC=B30E6D8F556D6AD067461A46B3FDC86CDB3F2F9D90E4B29BC81690A4094EF602&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'ru-RU-DmitryNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/产品图库/家电/10月15日.mp4,
输出结果保存到文件夹: E:/产品图库/家电/_video_out/10月15日-mp4,
临时文件夹: D:/工具/win-pyvideotrans-v4.13-1/tmp/33152/9c61aa63a0
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:俄语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Dmitry(Male/RU), 配音语言:俄语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
代理地址:http://127.0.0.1:7897
video_duration_ms=49300


=
system:Windows-10-10.0.26200-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/工具/win-pyvideotrans-v4.13-1

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 Edge-TTS(微软免费接口)更改了服务端验证逻辑所致,旧版本内置的 edge-tts 库无法通过验证,从而返回 403 错误。v4.16 版本已修复该问题,你当前使用的是 v4.13,需升级。

解决方案

  1. Windows 预打包版:请下载 v4.16 完整包或补丁包覆盖到软件根目录(补丁包覆盖时注意保持目录结构一致)。
  2. 源码部署版(macOS/Linux/Windows):在源码目录执行命令更新 edge-tts 库:

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

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

  3. 升级后如仍遇限流:Edge-TTS 短时间内高频请求仍可能被临时拦截,建议在 菜单 → 工具/选项 → 高级选项 → 字幕配音调整 中,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5-10。

你当前使用的代理地址 http://127.0.0.1:7897 也可能影响 Edge-TTS 连接,若升级后仍然异常,可尝试填写代理或临时关闭代理后再试;若出现代理相关错误,可在软件根目录创建空文件 edgetts-noproxy.txt 强制 Edge-TTS 绕过代理。

请查阅相关文档:

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