#3237 TaskCfg(cache_folder='C:/kevin/win-pyvideotrans-3.89/tmp/24984/bea4338750', target_dir='C:/Users/holaw/Downloads/ArtStat

2803:a3e0* Posted at: 20 hours ago 👁10

Dubbing Error:[Edge-TTS(Free)] Network connection failed:
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 123, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 224, in run
File "videotrans\task\_dubbing.py", line 48, in dubbing
File "videotrans\task\_dubbing.py", line 217, in _tts
File "videotrans\tts\__init__.py", line 279, in run
File "videotrans\tts\_base.py", line 188, in run
File "videotrans\tts\_edgetts.py", line 72, in _create_audio_with_retry
File "asyncio\tasks.py", line 445, in wait_for
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&Sec-MS-GEC=7D0A79D4B0B5FB7F1EB2A18F7421ABC94D9A38280ADC24A739D22D4E10095F23&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=557c2377ec074e3ea09ebfb66b6f8f57'

TaskCfg(cache_folder='C:/kevin/win-pyvideotrans-3.89/tmp/24984/bea4338750', target_dir='C:/Users/holaw/Downloads/ArtStation Model & Texture A Game Asset - Full Process/Video Lessons Part 1/Nueva carpeta/00 - Intro-mp4', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='es', source_sub=None, target_sub='C:/Users/holaw/Downloads/ArtStation Model & Texture A Game Asset - Full Process/Video Lessons Part 1/Nueva carpeta/00 - Intro-mp4/es.srt', source_wav=None, source_wav_output=None, target_wav='C:/Users/holaw/Downloads/ArtStation Model & Texture A Game Asset - Full Process/Video Lessons Part 1/Nueva carpeta/00 - Intro-mp4/es.mp3', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='es', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yolanda(Female/NI)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='C:/Users/holaw/Downloads/ArtStation Model & Texture A Game Asset - Full Process/Video Lessons Part 1/Nueva carpeta/00 - Intro-mp4/es.srt', basename='es.srt', ext='srt', dirname='C:/Users/holaw/Downloads/ArtStation Model & Texture A Game Asset - Full Process/Video Lessons Part 1/Nueva carpeta/00 - Intro-mp4', shound_del_name=None, uuid='bea4338750', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.89
frozen:True
language:en
root_dir:C:/kevin/win-pyvideotrans-3.89

1 Replies

This error is caused by Edge-TTS being rate-limited by Microsoft, resulting in a 403 network error.

Solution:

  1. In the software's main interface, click the "Advanced Options" button.
  2. In the pop-up window, find the "Dubbing Settings" section.
  3. Set "Simultaneous Dubbing Threads" to 1.
  4. Set "Pause Seconds After Dubbing" to 5 or 10 seconds.
  5. Click "OK" to save the settings and try the dubbing task again.

Additional Note: The error log indicates you are using version v3.89. It is recommended to upgrade to the latest version v3.97, as it may contain fixes for related issues.

Please refer to the relevant documentation:

Post Your Reply
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.

Related resource