#6318 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth语音识别阶段出错:faster-whisper(本地), 翻译字幕阶段出错: 微软(

161.34* Posted at: 2 hours ago

404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth语音识别阶段出错:faster-whisper(本地), 翻译字幕阶段出错: 微软(免费), 配音阶段出错:Edge-TTS(免费)
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 69, in run
File "videotrans\translator\_base.py", line 98, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 68, in run
File "videotrans\task\trans_create.py", line 585, in trans
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", l
......
\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
TaskCfgVTT(uuid='69cdd12e91', name='D:/TK素材 - 2/34.玉米粒剥离器/8月4日 剥玉米器-1.mp4', dirname='D:/TK素材 - 2/34.玉米粒剥离器', noextname='8月4日 剥玉米器-1', basename='8月4日 剥玉米器-1.mp4', ext='mp4', target_dir='D:/TK素材 - 2/31.洗鞋袋/8月4日 剥玉米器-1-mp4', cache_folder='D:/视频翻译软件/win-pyvideotrans-v4.01-0602/tmp/17848/69cdd12e91', is_cuda=False, source_language='简体中文', source_language_code='zh-cn', source_sub='D:/TK素材 - 2/31.洗鞋袋/8月4日 剥玉米器-1-mp4/zh-cn.srt', source_wav='D:/视频翻译软件/win-pyvideotrans-v4.01-0602/tmp/17848/69cdd12e91/zh-cn.wav', source_wav_output='D:/TK素材 - 2/31.洗鞋袋/8月4日 剥玉米器-1-mp4/zh-cn.m4a', target_language='马来西亚语', target_language_code='ms', target_sub='D:/TK素材 - 2/31.洗鞋袋/8月4日 剥玉米器-1-mp4/ms.srt', target_wav='D:/视频翻译软件/win-pyvideotrans-v4.01-0602/tmp/17848/69cdd12e91/target.wav', target_wav_output='D:/TK素材 - 2/31.洗鞋袋/8月4日 剥玉米器-1-mp4/ms.m4a', translate_type=1, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yasmin(Female/MY)', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='D:/TK素材 - 2/31.洗鞋袋/8月4日 剥玉米器-1-mp4/8月4日 剥玉米器-1.mp4', novoice_mp4='D:/视频翻译软件/win-pyvideotrans-v4.01-0602/tmp/17848/69cdd12e91/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/视频翻译软件/win-pyvideotrans-v4.01-0602/tmp/17848/69cdd12e91/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.22631-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/视频翻译软件/win-pyvideotrans-v4.01-0602

1 Replies

这是微软免费在线翻译接口当前不可用导致的。报错 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth 意味着微软翻译的授权接口已失效,可能是微软服务器临时故障,也可能是该接口已被官方关闭,并非你的配置或网络问题。

解决办法

  1. 更换翻译渠道为 DeepSeek(效果最好且价格低):

    • 前往 https://platform.deepseek.com 注册并充值(可自定义充值 1 元);
    • 获取 API Key,填写到 菜单 -> 翻译设置 -> DeepSeek 的密钥中;
    • 在主界面翻译渠道下拉框选择 DeepSeek
  2. 或使用 M2M100(内置) 本地翻译:

    • 在主界面翻译渠道下拉框选择 M2M100(内置),第一次使用会自动在线下载模型,之后可完全离线翻译。
  3. 说明:Google 翻译在中国大陆需代理 VPN 才可用;且当选择 Google 翻译失败时,软件会自动使用微软翻译重试,所以当前同样会遇到该报错。

补充建议

你当前的视频路径包含中文、空格和特殊符号(如 D:/TK素材 - 2/...D:/视频翻译软件/...),底层 FFmpeg 等工具对这类路径兼容性较差,建议将视频和软件目录移动到纯英文数字的浅层路径(例如 D:/pyVideoTransD:/videos),可减少后续合成阶段的异常风险。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource