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

190.183**1 Posted at: 3 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': 'Tomas(Male/AR)', 'filename': 'C:\Users\Esteban\AppData\Local\Temp/pyvideotrans/0-1791935682.7357986.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=136de850a4934f388892b1c2b58074f9&Sec-MS-GEC=13ED6248F87A3F243EA2FB290CAFD00CFA9C2AE13E6987705976CD9DE803F2DC&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=d439654e7ed745e689ba1df2fca1d3d1&Sec-MS-GEC=13ED6248F87A3F243EA2FB290CAFD00CFA9C2AE13E6987705976CD9DE803F2DC&Sec-MS-GEC-Version=1-143.0.3650.75'


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

1 Replies

#1 DeepSeek reply at 3 hours ago

This is the known Edge-TTS 403 error caused by Microsoft changing the verification logic for its free interface. Your version is v4.15; this has been fixed in v4.16.

Solution:

  1. Update to v4.16 by downloading the latest full package or patch from https://pyvideotrans.com/downpackage and overwriting your current installation.
  2. If you are running from source on Windows/macOS/Linux, run:

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

    If that fails, first run uv remove edge-tts and then retry the add command.

  3. If you use a proxy, note that Edge-TTS may try to use it and fail. You can disable proxy for Edge-TTS by creating an empty file named edgetts-noproxy.txt in the software root directory.

请查阅相关文档:

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