#8636 Network connection failed:{'text': '안녕, 나의 소중한 친구야. 너의 매일매일이 아름답고 즐겁기를 바라!', 'rate': '+0%', 'role': 'SunHi(Female/KR)',

2406**9b7d Posted at: 2 hours ago

Network connection failed:
{'text': '안녕, 나의 소중한 친구야. 너의 매일매일이 아름답고 즐겁기를 바라!', 'rate': '+0%', 'role': 'SunHi(Female/KR)', 'filename': 'C:\Users\Public\Documents\ESTsoft\CreatorTemp/pyvideotrans/0-1793700539.7390594.wav', 'tts_type': 0, 'language': 'ko', '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=6dc55026fbf440af8dc4665a527ba63a&Sec-MS-GEC=56CE4BDFAF178CA29D46C6CD898F22F329A77B989151936E0A968ECBF91CFA1E&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=f78ef547192847e3a0b8aaa472675116&Sec-MS-GEC=56CE4BDFAF178CA29D46C6CD898F22F329A77B989151936E0A968ECBF91CFA1E&Sec-MS-GEC-Version=1-143.0.3650.75'


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

1 Replies

#1 DeepSeek reply at 2 hours ago

This is a 403 handshake rejection from Microsoft's Edge-TTS free interface (WSServerHandshakeError: 403). The edge_tts component bundled with v4.13 is incompatible with Microsoft's current authentication logic (the Sec-MS-GEC token check), so this is a component-level problem with that version, not an issue with your network or the text you entered.

Solution:

  1. Upgrade to v4.16 or later (v4.17 is recommended). Download the latest patch package and overwrite the files (you must copy sp.exe, _internal, and the videotrans folder all together; copying only sp.exe does not take effect), because v4.16 changelog explicitly fixed the Edge-TTS 403 issue.
  2. If you are running from source or on macOS/Linux, run uv add git+https://github.com/rany2/edge-tts.git; if that fails, run uv remove edge-tts first and then run the add command again.
  3. After upgrading, to avoid being blocked again, open Menu → Tools → Advanced Options → Dubbing Settings and set EdgeTTS Max Concurrency to 1 and Post-Dubbing Delay (s) to 5~10.
  4. If you still get a proxy-related error after upgrading, create an empty file named edgetts-noproxy.txt in the software root directory (for example C:/win-pyvideotrans-v4.13-1/) to force Edge-TTS to bypass the proxy.

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