#8019 Network connection failed:{'text': 'Hola mi querido amigo. ¡Espero que cada día sea hermoso y agradable!', 'rate': '+0%'

2803**7adf Posted at: 1 hour ago

Network connection failed:
{'text': 'Hola mi querido amigo. ¡Espero que cada día sea hermoso y agradable!', 'rate': '+0%', 'role': 'Alvaro(Male/ES)', 'filename': 'C:\Users\Jhonatan\AppData\Local\Temp/pyvideotrans/0-1791817229.4700193.wav', 'tts_type': 0, 'language': 'es-419', '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=0328f4ce82ae4c8fa48d0522708f40c6&Sec-MS-GEC=9A84AB4085D0BF5DEAE22D761BC2F100C1D37A765730F5D324627F6EE9D5865D&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 233, in run
File "videotrans\tts\_base.py", line 100, 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=dde53ace2fa44561bdc8916404c9e312&Sec-MS-GEC=9A84AB4085D0BF5DEAE22D761BC2F100C1D37A765730F5D324627F6EE9D5865D&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26300-SP0
version:v4.11
frozen:True
language:en
root_dir:D:/pyvideotrans-v4.11.7/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

This is caused by Microsoft's recent change to the free Edge-TTS endpoint's verification logic (after 2026-10-10). Most requests now return 403 Invalid response from speech.platform.bing.com, which is exactly what your log shows (WSServerHandshakeError: 403). This affects all Edge-TTS usage, including the voice preview you were testing.

Solution steps:

  1. Switch to another TTS channel immediately until a patched build is released. Recommended alternatives: gTTS(免费) for free use, or Qwen-TTS(内置) / OmniVoice-TTS(内置) for better quality. Your version v4.11 is also outdated — upgrade to the latest v4.15 and then download the latest patch package if available.
  2. Try VPN workaround: If you want to keep using Edge-TTS for now, enable your VPN and switch to nodes in different countries/continents. Currently some country nodes can still connect successfully, though not reliably.
  3. If you are using a proxy and Edge-TTS fails specifically due to proxy interference, you can create an empty file named edgetts-noproxy.txt in the software root directory to force Edge-TTS to bypass the proxy.
  4. If the failure happens during a task run, check the latest patch on the official download page afterwards, since the Edge-TTS fix will be delivered via a version update/patch. Meanwhile, re-run the task with the alternative TTS channel.

请查阅相关文档:

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