#8039 Network connection failed:{'text': '¡Hola, mi querido amigo! ¡Espero que cada uno de tus días sea hermoso y agradable!',

2803**e95b Posted at: 2 hours ago

Network connection failed:
{'text': '¡Hola, mi querido amigo! ¡Espero que cada uno de tus días sea hermoso y agradable!', 'rate': '+0%', 'role': 'Ximena(Female/ES)', 'filename': 'C:\Users\Jhonatan\AppData\Local\Temp/pyvideotrans/0-1791866603.7770135.wav', 'tts_type': 0, 'language': 'es', '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=ba94728faace4ad991f237de957c952e&Sec-MS-GEC=31BEFFA7C79D56DF520FC0D9D7E4C0082C8E96E81B74722B01861CBD405AF488&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=52def63f624b433e879849683e108f56&Sec-MS-GEC=31BEFFA7C79D56DF520FC0D9D7E4C0082C8E96E81B74722B01861CBD405AF488&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26300-SP0
version:v4.15
frozen:True
language:en_US
root_dir:D:/pyvideotrans-v4.15/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 2 hours ago

This is a known Edge-TTS 403 error caused by changes Microsoft made to the free Edge-TTS API validation logic after 2026-10-10. Your log shows WSServerHandshakeError: 403 from speech.platform.bing.com, which confirms this.

Actions you can take now:

  1. Use a different TTS channel – Switch to another available voice provider (e.g., gTTS, Qwen-TTS, or any other configured TTS service) until the fix is released.
  2. Try a VPN with a different region – In some countries/continents, the Edge-TTS service still works. Experiment with switching your VPN node to a different country or continent.
  3. Wait for v4.16 – The next version is expected to fix this issue. Until then, the above workarounds are your best options.

Additional note: If you have a proxy configured, you can also try creating an empty file named edgetts-noproxy.txt in the software root directory to force Edge-TTS to bypass the proxy, but the primary cause here is the service-side change.

Please refer to the relevant document:

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