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

221.176**0 Posted at: 2 hours ago

Network connection failed:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'D:/安装程序/pyVideoTrans/win-pyvideotrans-v4.15/tmp/32488/listen_voice/0-zh-cn-1791943672.0668516.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=911db4e1f2394aa38c388d4a233f5a75&Sec-MS-GEC=EEFDC5DB2880ABF51925AEB5C5B3E2071773596CBAE053216CFB7AE011FB1F2D&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=3e79327bd0a34f5f8267a33f257618b7&Sec-MS-GEC=EEFDC5DB2880ABF51925AEB5C5B3E2071773596CBAE053216CFB7AE011FB1F2D&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:D:/安装程序/pyVideoTrans/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 2 hours ago

这是微软 Edge-TTS 免费接口更改了验证逻辑导致的,旧版本(v4.15及更早)无法适配,返回 403 错误。请升级到 v4.16 或更新版本修复。

解决方案:

  1. 前往官网下载 v4.16 最新补丁包或完整包,覆盖到软件目录。
  2. 若升级后仍报错,且你使用了代理,可在软件根目录创建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理。
  3. 若仍失败,可改用其他配音渠道(如 gTTS、Qwen3-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