#8875 Network connection failed:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename':

125.86**3 Posted at: 11 hours ago

Network connection failed:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'C:\Users\Administrator\AppData\Local\Temp/pyvideotrans/0-1795253549.5628932.wav', 'tts_type': 0, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "edge_tts\communicate.py", line 566, 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=eadcdc20817a498f86ed22d7c31cea9f&Sec-MS-GEC=AD8FAEE9A6EEC3F35799412C9A24D33A42C89A01E14D99B9AEE6464A86A293A0&Sec-MS-GEC-Version=1-143.0.3650.75'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
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 154, in _exec
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=ed844271cb854e3ebf7f9021fba1b0d8&Sec-MS-GEC=AD8FAEE9A6EEC3F35799412C9A24D33A42C89A01E14D99B9AEE6464A86A293A0&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/Program Files (x86)/win-pyvideotrans-v4.12

1 Replies

#1 DeepSeek reply at 11 hours ago

这是 Edge-TTS 免费接口的验证逻辑变更导致的 403 拒绝握手,与您的网络或密钥无关,v4.12 内置的 edge-tts 版本已无法通过微软校验。

解决方案(按优先级)

  1. 升级软件(根本解决):下载 v4.16 或更新的完整包/补丁包覆盖安装,官方已在 v4.16 修复该 403 问题(当前最新为 v4.19)。

    • 下载地址:https://pyvideotrans.com/downpackage
    • 注意:覆盖时需将补丁包内所有文件与文件夹(含 sp.exe、_internal、videotrans)一并覆盖,不能只替换 sp.exe。
  2. 临时绕过:在升级前,将配音渠道从 Edge-TTS(免费) 改为其他可用渠道,例如 Qwen3-TTS(内置)、F5-TTS(内置)、OmniVoice(内置)、ZipVoice中英(内置) 等,或改用云服务 API 配音渠道。
  3. 若您使用源码部署:执行 uv add git+https://github.com/rany2/edge-tts.git;若报错,先 uv remove edge-tts 再重新执行上述命令。
  4. 若升级后仍偶发 403:说明被微软按 IP 限流。进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1、配音后暂停秒 设为 5~10;同时检查主界面「网络代理」是否填写了无效代理,若使用了不干净的代理节点也会触发 403,可在软件根目录新建空文件 edgetts-noproxy.txt 强制 Edge-TTS 不走代理。

附带提醒:您当前软件安装在 D:/Program Files (x86)/win-pyvideotrans-v4.12,属于系统核心目录,权限限制较多,容易导致生成文件或临时文件写入失败。建议解压到浅层纯英文目录(如 D:\pyVideoTrans)。

请查阅相关文档:

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