#8226 配音阶段出错 [Edge-TTS(免费)] 配音全部失败 :403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speec

123.110**7 Posted at: 2 hours ago

配音阶段出错 [Edge-TTS(免费)] 配音全部失败 :403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=f11833c110c94373a89efa68e8269d72&Sec-MS-GEC=410A78B900E69BE438679DCB0750636B62CD93675C7479B9632A686402DD9EAA&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'zh-CN-YunxiNeural'}
Traceback (most recent call last):

File "videotrans\tts\_base.py", line 84, in run

RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 154, in process_task

File "videotrans\task\_stage_dubbing.py", line 23, in dubbing

File "videotrans\task\_stage_dubbing.py", line 102, in _tts

File "videotrans\tts\__init__.py", line 207, in run

File "videotrans\tts\_base.py", line 88, in run

File "asyncio\base_events.py", line 649, in run_until_complete

File "videotrans\tts\_edgetts.py", line 202, 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=f11833c110c94373a89efa68e8269d72&Sec-MS-GEC=410A78B900E69BE438679DCB0750636B62CD93675C7479B9632A686402DD9EAA&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'zh-CN-YunxiNeural'}
cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: D:/00000000000000000000000000000000/Desktop/rtikrti (2).mp4,
输出结果保存到文件夹: D:/9999999999999999/4152-mp4/rtikrti (2)-mp4,
临时文件夹: D:/pyvideotrans/tmp/8044/cb0290ab26
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: medium, 发音语言: 英语, 断句方式:默认断句
翻译渠道:OpenRouter,原始语言:英语,目标语言:繁体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunxi(Male/CN), 配音语言:繁体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 嵌入硬字幕
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.19043-SP0
version:v4.04
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 Microsoft Edge-TTS 免费接口验证机制变更导致的 403 错误,你当前使用的是 v4.04 旧版,该问题已在 v4.16 版本中修复。

解决方案:

  1. 前往 https://pyvideotrans.com/downpackage 下载最新的完整包(或补丁包)并覆盖到软件目录;
  2. 下载后务必先解压再运行 sp.exe,覆盖时请使用完整包(2.7GB),若用补丁包请注意补丁包仅适用于相近版本;
  3. 覆盖后重新启动软件,再次尝试配音。

若为 macOS/Linux 或 Windows 源码部署版本,请执行:
uv add git+https://github.com/rany2/edge-tts.git
若出错,先执行 uv remove 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