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

212.135**2 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=0796289db9ad423ea39ba370de1220d6&Sec-MS-GEC=9B148170F57F0EC4387DF4DB0237DDAD55EDF95E43623DFD1CABA3BD5BD500CC&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'zh-CN-YunyangNeural'}
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 230, 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=0796289db9ad423ea39ba370de1220d6&Sec-MS-GEC=9B148170F57F0EC4387DF4DB0237DDAD55EDF95E43623DFD1CABA3BD5BD500CC&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'zh-CN-YunyangNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/搬运素材/恐龙派对/6.mp4,
输出结果保存到文件夹: D:/搬运素材/恐龙派对/_video_out/6-mp4,
临时文件夹: D:/换声音/tmp/24784/32d774d4f4
已选 清理已存在
已启用CUDA加速
已选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
发音语言和目标语言相同,不翻译字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
已选 仅输出mp4
代理地址:http://127.0.0.1:7890


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/换声音

1 Replies

#1 DeepSeek reply at 1 hour ago

这是因为微软 Edge-TTS 免费接口的验证逻辑变更导致 403 拒绝连接(你当前版本 v4.12 尚未修复此问题),同时你开启了本地代理 http://127.0.0.1:7890,Edge-TTS 走代理时也容易触发此类错误。

解决步骤(按推荐顺序):

  1. 升级软件到最新版本(核心修复)
    下载并覆盖最新完整包或补丁包,v4.16 已专门修复 Edge-TTS 403 问题。
    若你是源码部署,请执行:

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

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

  2. 强制 Edge-TTS 绕过代理
    在软件根目录(D:/换声音/)下新建一个空文本文件,命名为:

    edgetts-noproxy.txt

    这样 Edge-TTS 将不走你的 7890 代理,避免代理导致的连接失败。

  3. 降低并发、加大间隔(防止限流 403)
    菜单 → 工具/选项 → 高级选项 → 字幕配音调整:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10
  4. 若仍失败,切换配音渠道
    推荐改用以下无需外网的渠道(中文效果更好):

    • 豆包语音合成2.0(需 API Key,中文地道)
    • Qwen3-TTS(内置)(首次自动下载模型)
    • fish.audio(在线,作为 Elevenlabs 平替)

请查阅相关文档:

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