#8029 配音阶段出错 [Edge-TTS(免费)] 网络连接失败Traceback (most recent call last):

38.49**3 Posted at: 2 hours ago

配音阶段出错 [Edge-TTS(免费)] 网络连接失败
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 127, 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 213, in run
File "videotrans\task\_dubbing.py", line 51, in dubbing
File "videotrans\task\_dubbing.py", line 209, in _tts
File "videotrans\tts\__init__.py", line 335, in run
File "videotrans\tts\_base.py", line 192, in run
File "videotrans\tts\_edgetts.py", line 66, in _create_audio_with_retry
File "asyncio\tasks.py", line 445, in wait_for
File "edge_tts\communicate.py", line 590, in save
File "edge_tts\communicate.py", line 573, in stream
File "edge_tts\communicate.py", line 431, in __stream
File "aiohttp\client.py", line 1482, in aenter
File "aiohttp\client.py", line 1078, in _ws_connect
aiohttp.client_exceptions.WSServerHandshakeError: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=967e13f284bb458d8fcfd9136b5b2eff&Sec-MS-GEC=F61F81E5D157A2A1A0D8A6B90BE2F658A581B93EEEF1B1885AB03BEC656F2635&Sec-MS-GEC-Version=1-143.0.3650.75'
TaskCfgTTS(is_cuda=False, uuid='3db7d7c688', cache_folder='D:/BaiduNetdiskDownload/win-pyvideotrans-v3.98-323/tmp/4032/3db7d7c688', target_dir='C:/Users/Administrator/Desktop/8月4日 - 副本', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='en', target_sub='C:/Users/Administrator/Desktop/8月4日 - 副本/1英.srt', target_wav='C:/Users/Administrator/Desktop/8月4日 - 副本/1英.wav', target_wav_output=None, name='C:/Users/Administrator/Desktop/8月4日 - 副本/1英.srt', noextname='1英', basename='1英.srt', ext='srt', dirname='C:/Users/Administrator/Desktop/8月4日 - 副本', shound_del_name=None, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Wayne(Male/SG)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v3.98-323

1 Replies

#1 DeepSeek reply at 1 hour ago

这是微软 Edge-TTS 免费接口被更改验证逻辑导致的 403 授权失败。该接口自 2026-10-10 后大多数情况下已无法使用,报错 WSServerHandshakeError: 403 即为微软服务端拒绝了 WebSocket 连接,非您本地网络问题。

另外,您当前使用的是 v3.98 旧版本,请先升级到最新版 v4.15(Windows 绿色版需在官网重新下载完整包或补丁包覆盖)。

解决方案

  1. 更换其他配音渠道:这是目前最可靠的办法。可改用 gTTS(免费),或使用内置本地模型 Qwen3-TTS(内置)、F5-TTS(内置) 等配音渠道。
  2. 尝试切换VPN节点:微软目前仅在某些国家/地区的节点可正常访问,可尝试将代理切换至不同国家或不同洲的节点后重试。
  3. 调节 Edge-TTS 请求频率(若仍需使用 Edge-TTS):进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5-10 秒,降低请求频率以避免触发限流。
  4. 检查代理设置:若您配置了网络代理且代理异常,可尝试在软件根目录创建空白文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理后重试。
  5. 等待新版修复:微软接口问题预计将在后续版本(v4.16)中修复,届时请及时升级。

请查阅相关文档:

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