#8730 All error for edge-tts 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synt

2001**e495 Posted at: 11 hours ago

All error for edge-tts 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=e06259a02564403fba2ba94751f17ae6&Sec-MS-GEC=86F3DFA3BDCF0B6E3DB10B5D1E5CE45AD627C0E5DCF35A9A969752CB624BE581&Sec-MS-GEC-Version=1-143.0.3650.75':
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 84, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 88, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 200, in _exec
videotrans.configure.excepts.DubbingSrtError: All error for edge-tts 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=e06259a02564403fba2ba94751f17ae6&Sec-MS-GEC=86F3DFA3BDCF0B6E3DB10B5D1E5CE45AD627C0E5DCF35A9A969752CB624BE581&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:en
root_dir:C:/doblaje

1 Replies

#1 DeepSeek reply at 11 hours ago

This is not a network or proxy problem: Microsoft changed the authentication logic of its free edge-tts interface, so the request signature (Sec-MS-GEC) submitted by v4.03 is no longer accepted and the server always returns 403. This problem was fixed in v4.16; v4.03 itself has no workaround.

Solution:

  1. Download the latest full package (or the latest patch package) from https://pyvideotrans.com/downpackage and overwrite your current installation.
  2. When overwriting, copy the complete contents of the package (sp.exe + the _internal folder + the videotrans folder); do not overwrite only sp.exe. Otherwise, you will get "module version too old" errors.
  3. If old files remain and cause errors, delete every __pycache__ file and folder inside the old _internal folder, then overwrite again.
  4. After upgrading, if you still use Edge-TTS heavily, go to Menu → Tools/Options → Advanced Options → Dubbing Settings, set EdgeTTS Max Concurrency to 1, and set Post-Dubbing Delay (s) to 5–10 to avoid being rate-limited and blocked again.
  5. If a proxy is set in the main interface, create an empty edgetts-noproxy.txt in the software root directory to bypass it for Edge-TTS; otherwise, clear the proxy box.

Temporary alternative while upgrading: switch the TTS channel to Qwen3-TTS(Built-in) (supports Chinese/English and other languages, and supports cloning), ZipVoice, or gTTS.

Note: if you deployed from source rather than using the packaged build, run uv add git+https://github.com/rany2/edge-tts.git to update the edge-tts library directly; if that fails, run uv remove edge-tts first, then run the add command again.

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