#8100 Network connection failed:{'text': 'வணக்கம், என் அன்பு நண்பரே, உங்கள் ஒவ்வொரு நாளும் அழகாகவும் மகிழ்ச்சியாகவும் அமையட்டு

2001**4269 Posted at: 2 hours ago

Network connection failed:
{'text': 'வணக்கம், என் அன்பு நண்பரே, உங்கள் ஒவ்வொரு நாளும் அழகாகவும் மகிழ்ச்சியாகவும் அமையட்டும்!', 'rate': '+0%', 'role': 'Venba(Female/SG)', 'filename': 'D:/win-pyvideotrans-v4.13-1/tmp/20208/listen_voice/0-ta-1791956862.008064.wav', 'tts_type': 0, 'language': 'ta', '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=4c51eb69af25497baac3310c763c6eaa&Sec-MS-GEC=284459F5267127AFFD6F75023F7A342941FB61BE47F2F32D315F1740D7A1D0F0&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=4ea34280646242c890864903175df68a&Sec-MS-GEC=284459F5267127AFFD6F75023F7A342941FB61BE47F2F32D315F1740D7A1D0F0&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:D:/win-pyvideotrans-v4.13-1

1 Replies

#1 DeepSeek reply at 2 hours ago

This is caused by Microsoft's changed verification logic for the free Edge-TTS interface, resulting in HTTP 403 WSServerHandshakeError. Your version is v4.13, which is known to be affected. The fix is to update to v4.16 or the latest patch.

Steps:

  1. Download the latest full package or patch from https://pyvideotrans.com/downpackage and overwrite your current installation. In particular, ensure you replace sp.exe and the _internal folder.
  2. If you are using a source deployment on Windows/macOS/Linux, run:

    uv add git+https://github.com/rany2/edge-tts.git

    If that errors, first run uv remove edge-tts then retry.

  3. If you cannot update immediately, switch to another TTS channel (e.g. gTTS, Qwen3-TTS, or an online TTS) as a workaround.

请查阅相关文档:

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