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

45.207**3 Posted at: 1 hour 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 336, 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=b9b47bc2750040bcaee27038b4908503&Sec-MS-GEC=295C6D437757BE029F1C0619FB08318DAB3E1AF78F21A6ADF9D680C8205ADB43&Sec-MS-GEC-Version=1-143.0.3650.75'


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

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 免费接口的微软验证逻辑变更导致的 403 拦截,与你本地网络无直接关系,你当前使用的 v3.99 版本尚未修复该问题;新版 v4.16 已专门修复 Edge-TTS 403。

解决方案(按优先级):

  1. 升级到最新版 v4.16(推荐,可彻底解决)

    • Windows 预打包版:下载 v4.16 完整包(约 2.7GB),解压后覆盖到旧目录。只覆盖 sp.exe 不够,_internal、videotrans 等文件夹需一并覆盖。
    • 如果覆盖后仍报模块版本过低,请在 _internal 文件夹内搜索 __pycache__,删除所有搜到的文件和文件夹,再重新覆盖。
    • 下载地址:https://pyvideotrans.com/downpackage
  2. 临时绕过方案(不升级时)

    • 在软件根目录(D:/tufgiyujy)新建空文件 edgetts-noproxy.txt,强制 Edge-TTS 不走代理,然后重启软件重试。
    • 如果你填写了网络代理(主界面对齐行右侧文本框),可先清空代理再试;无效或错误的代理地址会导致所有在线请求失败。
    • 若仍 403,说明该免费接口对你当前 IP 已限流封禁,短期内无法恢复。
  3. 换用其他配音渠道

    • 在线免费:gTTS(国内需科学上网)。
    • 本地内置(首次使用需下载模型):Qwen3-TTS、OmniVoice-TTS、ZipVoice、Piper 等。
  4. 注意:v3.99 与当前最新 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