#8831 网络连接失败:Traceback (most recent call last):

120.228**2 Posted at: 5 hours ago

网络连接失败:
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 128, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 345, in run
File "videotrans\tts\_base.py", line 181, 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=04583110d9d247f983b16c5912bdaede&Sec-MS-GEC=1E40376AC158883D6B6DC5EDA691990E4A8FAC1FB42856CB4E2599FFA1BFA467&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

#1 DeepSeek reply at 5 hours ago

这是微软 Edge-TTS 免费接口的验证逻辑变更导致的 403 拒绝,与你本地网络无关;当前版本 v3.99 过旧,未包含修复。

解决方案:

  1. 升级软件(根本解决方法):Edge-TTS 的 403 问题已在 v4.16 修复。你当前是 v3.99 预打包版,请前往官网下载页面,将 最新完整包或补丁包 完整覆盖到 D:/pyvideotrans 目录(务必连同 _internal、videotrans 文件夹一同覆盖,只替换 sp.exe 无效),升级后重启软件重试。
  2. 临时规避(升级前过渡):在 配音渠道 下拉中临时改用其他免配置渠道,例如 gTTS(免费),或将配音渠道换成内置模型(如 Qwen3-TTS(内置)、OmniVoice(内置),首次使用需在线下载模型)。
  3. 降低限流概率(升级后仍偶发 403 时):进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。
  4. 若使用代理:可在软件根目录(D:/pyvideotrans)新建空文件 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