#8769 Dubbing failed completely:403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/sy

27.109**0 Posted at: 7 hours ago

Dubbing failed completely:403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=b5584c04117a4c12968214d42f2d12be&Sec-MS-GEC=7117B152B1C7A8A928C830280CFFEE6DD73B51C5A8905F111D14CA1FDA001D79&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'km-KH-PisethNeural'}
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
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 232, in run
File "videotrans\tts\_base.py", line 94, 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 228, 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=b5584c04117a4c12968214d42f2d12be&Sec-MS-GEC=7117B152B1C7A8A928C830280CFFEE6DD73B51C5A8905F111D14CA1FDA001D79&Sec-MS-GEC-Version=1-143.0.3650.75'
all_voices={'km-KH-PisethNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Pc/Downloads/Telegram Desktop/asdf.mp4,
输出结果保存到文件夹: C:/Users/Pc/Downloads/asdf-mp4,
临时文件夹: C:/pyTrans/tmp/12960/2c1fa970c9
已选 清理已存在
已启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), medium, 发音语言: English, 断句方式:默认断句
TranslateSrt:Microsoft Translate (Free),原始语言:English,目标语言:Khmer, 未选 SendSRT
TTS Service:Edge-TTS (Free), 角色:Piseth(Male/KH), 配音语言:Khmer, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: No Subtitles
已选 仅输出mp4
video_duration_ms=537600


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:en_US
root_dir:C:/pyTrans

1 Replies

#1 DeepSeek reply at 7 hours ago

This is because Microsoft has changed the authentication logic of the free Edge-TTS interface. The version you are using (v4.12) cannot pass the new authentication, so the request is rejected with a 403 error. This is a known issue and is not caused by your configuration.

Solution:

  1. Go to the official download page and download the latest v4.16 or newer version (the latest version is v4.18). Since you are using the Windows packaged version (frozen:True), you must overwrite the whole package, including sp.exe, the _internal folder, and the videotrans folder, rather than replacing only sp.exe.
  2. After upgrading, try again. If the issue persists, create an empty file named edgetts-noproxy.txt in the software root directory (C:/pyTrans) to prevent the Edge-TTS channel from using the proxy, then restart the software.
  3. If you later switch to source deployment, run uv add git+https://github.com/rany2/edge-tts.git to update the edge-tts library. If that fails, run uv remove edge-tts first and then update again.
  4. If Edge-TTS still fails temporarily, you can switch to another TTS channel that supports Khmer.

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