#6520 406 Client Error: Not Acceptable for url: https://translate.google.com/m?sl=zh-cn&tl=kk&hl=kk&q=%E7%9F%A5%E9%81%93%E5%8C

91.229.**0 Posted at: 18 hours ago

406 Client Error: Not Acceptable for url: https://translate.google.com/m?sl=zh-cn&tl=kk&hl=kk&q=%E7%9F%A5%E9%81%93%E5%8C%97%E4%BA%AC%E7%9B%91%E7%8B%B1%E5%90%A7%0A%E9%82%A3%E5%B0%B1%E6%98%AF%E4%BD%A0%E7%9A%84%E5%A5%BD%E5%8E%BB%E5%A4%84[字节语音大模型极速版, Google(免费), Elevenlabs.io]
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

return copy(f, *args, **kw)

File "tenacity\__init__.py", line 477, in call

do = self.iter(retry_state=retry_state)

File "tenacity\__init__.py", line 378, in iter

result = action(retry_state)

File "tenacity\__init__.py", line 421, in exc_check

raise retry_exc from fut.exception()

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 166, in _ru
......
ame='80', basename='80.mp4', ext='mp4', target_dir='D:/shipin2222/80-mp4/kk', shared_target_dir='D:/shipin2222/80-mp4', cache_folder='D:/pyvideotrans/tmp/37416/ec949bca79-kk', is_cuda=False, source_language='简体中文', source_language_code='zh-cn', source_sub='D:/shipin2222/80-mp4/zh-cn.srt', source_wav='D:/shipin2222/80-mp4/_shared/zh-cn.wav', source_wav_output='D:/shipin2222/80-mp4/zh-cn.m4a', target_language='哈萨克语', target_language_code='kk', target_sub='D:/shipin2222/80-mp4/kk/kk.srt', target_wav='D:/pyvideotrans/tmp/37416/ec949bca79-kk/target.wav', target_wav_output='D:/shipin2222/80-mp4/kk/kk.m4a', translate_type=0, tts_type=20, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Roger - Laid-Back Casual Resonant', voice_role_auto_mode=True, voice_autorate=True, video_autorate=True, dubbing_thread_workers=2, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=8, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, target_language_pairs=[{'language': '俄罗斯语', 'code': 'ru'}, {'language': '哈萨克语', 'code': 'kk'}], target_languages=['俄罗斯语', '哈萨克语'], target_language_codes=['ru', 'kk'], multi_target_language_serial=True, multi_target_language_workers=0, resolved_multi_target_language_workers=2, stage_parallel_workers=2, video_slow_clip_workers=2, process_name='80.mp4 - 哈萨克语', subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='D:/shipin2222/80-mp4/kk/80.mp4', novoice_mp4='D:/pyvideotrans/tmp/37416/ec949bca79-kk/novoice.mp4', is_separate=True, embed_bgm=True, instrument='D:/shipin2222/80-mp4/_shared/instrument.wav', vocal='D:/shipin2222/80-mp4/_shared/vocal.wav', clear_cache=False, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

Google 免费翻译接口拒绝了当前请求(HTTP 406),通常是因为国内网络无法直接访问 Google,或 Google 对该接口的链接/请求频率做了限制;你当前版本为 v4.03,也可能与旧版 Google 接口格式不兼容有关。

解决方案:

  1. 优先更换翻译渠道:建议改用 DeepSeek(效果最好,也支持哈萨克语)。在「菜单 → 翻译设置 → DeepSeek」中填写 API Key,主界面翻译渠道选择 DeepSeek
  2. 或使用内置 M2M100 本地翻译:第一次使用时会自动下载模型,完全离线,无需 API Key。
  3. 如果仍想用 Google,请在「网络代理」中填写可稳定访问 Google 的代理地址(例如 http://127.0.0.1:7890),并确认浏览器能直接打开 translate.google.com
  4. 建议升级到最新版 v4.09(或重新下载补丁包覆盖),旧版本可能已无法被 Google 接口接受。
  5. 若仍失败,请提供软件安装目录下 logs/ 中最新日志底部的约30行内容,以便进一步分析。

请查阅相关文档:

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