#8436 Error during TTS dubbing stage [Edge-TTS (Free)] Dubbing failed completely:403, message='Invalid response status', url='

2a00**b57e Posted at: 2 hours ago

Error during TTS dubbing stage [Edge-TTS (Free)] Dubbing failed completely:403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=26ca975528ca4b588dfbfb209f0cb25e&Sec-MS-GEC=CDEF581B514F6B2723E5D299499EBB5815AA5FAB5B184181ECCD3C7CAB82663D&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'tr-TR-AhmetNeural'}
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 155, in process_task

File "videotrans\task\_stage_dubbing.py", line 24, in dubbing

File "videotrans\task\_stage_dubbing.py", line 101, in _tts

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 235, in _exec

videotrans.configure.excepts.DubbingSrtError: Dubbing failed completely:403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=26ca975528ca4b588dfbfb209f0cb25e&Sec-MS-GEC=CDEF581B514F6B2723E5D299499EBB5815AA5FAB5B184181ECCD3C7CAB82663D&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'tr-TR-AhmetNeural'}
trk=[TransCreate]: uuid='72491a92b3', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: D:/Tutorials/Maya/MYA312 – Advanced Lighting Practices for Maya & Arnold by Philip Maddock/mya312-class01.mp4,
输出结果保存到文件夹: D:/Tutorials/Maya/MYA312 – Advanced Lighting Practices for Maya & Arnold by Philip Maddock/_video_out/mya312-class01-mp4,
临时文件夹: C:/Users/yazil/OneDrive/Desktop/win-pyvideotrans-v4.15/tmp/19564/72491a92b3
已选 清理已存在
已启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), large-v3-turbo, 发音语言: English,
TranslateSrt:Microsoft Translate (Free),原始语言:English,目标语言:Turkish, 已选 SendSRT
TTS Service:Edge-TTS (Free), 角色:Ahmet(Male/TR), 配音语言:Turkish, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: No Subtitles
已选 仅输出mp4, precent=15, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.26300-SP0
version:v4.15
frozen:True
language:en_US
root_dir:C:/Users/yazil/OneDrive/Desktop/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 2 hours ago

This is because Microsoft changed the authentication logic of the free edge-tts interface. The edge-tts library built into v4.15 has become invalid, so the WebSocket handshake is rejected and returns 403 (it is not a voice problem; the voice tr-TR-AhmetNeural itself is normal).

Solution (in order):

  1. Upgrade to v4.16 or later (this is the official fix for the 403 problem)

    • Download the v4.16+ patch package or full package from https://pyvideotrans.com/downpackage.
    • When overwriting, be sure to overwrite all files, including sp.exe, the _internal folder, and the videotrans folder; do not overwrite only sp.exe.
    • If you still get an error saying that a module version is too old after overwriting, search for __pycache__ in the _internal folder of the old version, delete all files and folders found, and then overwrite again.
  2. If you are using source deployment (non-frozen package), update the edge-tts library:

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

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

  3. Temporary alternative: before the upgrade takes effect, switch the TTS channel to another one that supports Turkish, such as gTTS(Free) (requires a proxy in mainland China) or a built-in channel that supports Turkish. Alternatively, switch the subtitle translation target to a language you can dub, and process it again later.
  4. Supplementary mitigation (to prevent being rate-limited): in Menu → Tools/Options → Advanced Options → Dubbing, set EdgeTTS Max Concurrency to 1, and set Post-Dubbing Delay (s) to 5~10.

Note: your video file name contains special characters such as – (en dash) and &, and the path is quite deep. It is recommended to rename it to a short path containing only English letters, digits, and underscores (e.g. D:/maya312/mya312-class01.mp4) to avoid subsequent FFmpeg path errors.

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