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

113.124**3 Posted at: 1 hour ago

Network connection failed:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunxia(Male/CN)', 'filename': 'C:\Users\ADMINI~1\AppData\Local\Temp/pyvideotrans/0-1791848979.2412174.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=e8b3a9b096274bf58c655b7635f29236&Sec-MS-GEC=8CBD2190F42FD8BDF0365C9A2241C67CD5D58B213180E9FB2C860CE9E7DC5A03&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 122, in run
File "videotrans\tts\_base.py", line 95, 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 161, 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=873d6972545e4cfa9355966c1be15fcb&Sec-MS-GEC=8CBD2190F42FD8BDF0365C9A2241C67CD5D58B213180E9FB2C860CE9E7DC5A03&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19045-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:E:/AAA/yingwen/PT/anzhuangbao/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 1 hour ago

这是微软 Edge-TTS 免费接口自身的问题:微软于 2026-10-10 之后更改了 Edge-TTS 的验证逻辑,导致大多数情况下无法使用,返回 403 错误。这是软件无法控制的接口端变更,与您的网络、代理或 pyVideoTrans 配置无关。

解决方案(按推荐顺序):

  1. 更换配音渠道:这是当前最可靠的方案。可在主界面「字幕配音」渠道中改用其他渠道,例如 gTTS(免费)、Qwen3-TTS(内置)、豆包语音合成、OpenAI-TTS 等。
  2. 尝试 VPN 切换节点:目前某些国家/洲的节点仍可使用 Edge-TTS,可尝试切换不同国家节点的 VPN 后重试。
  3. 等待 v4.16 版本:开发者已了解此问题,将在下版(v4.16)修复。
  4. 若您正在使用代理且怀疑与代理有关,可在软件根目录创建空文件 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