#9106 Network connection failed:{'text': 'Привет, мой дорогой друг! Надеюсь, каждый твой день будет прекрасным и радостным!',

163.245**7 Posted at: 4 hours ago

Network connection failed:
{'text': 'Привет, мой дорогой друг! Надеюсь, каждый твой день будет прекрасным и радостным!', 'rate': '+0%', 'role': 'Dmitry(Male/RU)', 'filename': 'C:/AI/win-pyvideotrans-v4.13-1/tmp/38948/listen_voice/0-ru-1796418104.6418095.wav', 'tts_type': 0, 'language': 'ru', '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=029d18c71df748f2a3426eba3e83b7d2&Sec-MS-GEC=210DA6656792AAA8CA62501A80BE2063B4A86630C0851B2A3E1E8BC433F06B97&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 118, in run
File "videotrans\tts\_base.py", line 92, 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=32b4bab539304d50b6db3b950c1ea7de&Sec-MS-GEC=210DA6656792AAA8CA62501A80BE2063B4A86630C0851B2A3E1E8BC433F06B97&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26300-SP0
version:v4.13
frozen:True
language:en_US
root_dir:C:/AI/win-pyvideotrans-v4.13-1

1 Replies

#1 DeepSeek reply at 4 hours ago

This is because Microsoft changed the authentication logic of the free edge-tts interface, so version v4.13 directly returns 403 (WSServerHandshakeError: 403), and the connection cannot be established. This is not a local network failure.

Solution:

  1. Download the v4.16 or later patch and overwrite it into the software directory (all files and folders in the patch must be fully overwritten, especially sp.exe, the _internal folder, and the videotrans folder); do not overwrite only sp.exe.
  2. After overwriting, if old-version cached modules remain, delete all __pycache__ folders under _internal, then start again.
  3. If it still reports 403 after the upgrade and you are using a proxy, create an empty file named edgetts-noproxy.txt in the software root directory to force EdgeTTS to bypass the proxy and retry.
  4. If you do not want to upgrade for the time being, switch the TTS channel to gTTS (Free) or a local built-in channel (such as Qwen3-TTS/F5-TTS/OmniVoice) to complete dubbing first.
  5. If you also encounter intermittent 403s later, set Advanced Options - Dubbing Settings - EdgeTTS Max Concurrency to 1 and Post-Dubbing Delay (s) to 5-10.

Please refer to the related documentation:

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