#8183 Network connection failed:{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate':

60.235**2 Posted at: 2 hours ago

Network connection failed:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'Wayne(Male/SG)', 'filename': 'C:\Users\liangzi\AppData\Local\Temp/pyvideotrans/0-1792074298.1421204.wav', 'tts_type': 0, 'language': 'en', '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=3b67b6936fa744f98552faea35913fad&Sec-MS-GEC=7C9E44F761E677130C75A84C8AEA8ECEC21BF13618A45B339C4ACA357CA60593&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 119, in run
File "videotrans\tts\_base.py", line 93, 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=85dede8c5bcc410ba7303dd611a8d7f8&Sec-MS-GEC=7C9E44F761E677130C75A84C8AEA8ECEC21BF13618A45B339C4ACA357CA60593&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26200-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 Edge-TTS 渠道的 403 错误,原因是微软免费接口更改了验证逻辑,旧版本内置的 edge-tts 组件已被拒绝连接。你当前是 v4.14 预打包版,需要升级到 v4.16 修复。

解决方案:

  1. 下载 v4.16 完整包或补丁包,覆盖到当前目录(D:/win-pyvideotrans-v4.14)。注意:覆盖前请退出软件,覆盖后确认 sp.exe、_internal 等文件均已替换。

  2. 如果覆盖后仍报 403,且你使用了代理,请关闭代理重试;或在软件根目录创建空文件 edgetts-noproxy.txt,强制 Edge-TTS 不走代理。
  3. 若暂时无法升级,可临时换用其他配音渠道,如 gTTS(免费) 或本地 Qwen3-TTS / F5-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