#3136 TaskCfg(cache_folder='E:/下載/win-pyvideotrans-v3.96/tmp/18124/81d3ac32aa', target_dir='E:/Unknown alley/_video_out/MIRD-2

36.232* Posted at: 10 days ago 👁31

翻译字幕阶段出错 [Gemini AI] You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit.

  • Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3-flash
    Please retry in 33.232317262s.
    Traceback (most recent call last):
    File "videotrans\translator\_gemini.py", line 112, in _item_task
    File "google\genai\models.py", line 5407, in generate_content_stream
    File "google\genai\models.py", line 4101, in _generate_content_stream
    File "google\genai\_api_client.py", line 1405, in request_streamed
    File "google\genai\_api_client.py", line 1224, in _request
    File "tenacity\__init__.py", line 477, in call
    File "tenacity\__init__.py", line 378, in iter
    File "tenacity\__init__.py", line 420, in exc_check
    File "tenacity\__init__.py",
    ......
    ': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-3-flash'}, 'quotaValue': '20'}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '33s'}]}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 174, in run
File "videotrans\task\trans_create.py", line 632, in trans
File "videotrans\translator\__init__.py", line 981, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
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 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 132, in _item_task
videotrans.configure._except.StopRetry: You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit.

  • Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3-flash
    Please retry in 33.232317262s.
    TaskCfg(cache_folder='E:/下載/win-pyvideotrans-v3.96/tmp/18124/81d3ac32aa', target_dir='E:/Unknown alley/_video_out/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online-ts', remove_noise=False, is_separate=False, detect_language='ja', subtitle_language=None, source_language='日语', target_language='繁体中文', source_language_code='ja', target_language_code='zh-tw', source_sub='E:/Unknown alley/_video_out/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online-ts/ja.srt', target_sub='E:/Unknown alley/_video_out/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online-ts/zh-tw.srt', source_wav='E:/下載/win-pyvideotrans-v3.96/tmp/18124/81d3ac32aa/ja.wav', source_wav_output='E:/Unknown alley/_video_out/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online-ts/ja.m4a', target_wav='E:/下載/win-pyvideotrans-v3.96/tmp/18124/81d3ac32aa/target.wav', target_wav_output='E:/Unknown alley/_video_out/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online-ts/zh-tw.m4a', subtitles='', novoice_mp4='E:/下載/win-pyvideotrans-v3.96/tmp/18124/81d3ac32aa/novoice.mp4', noextname='MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online', shibie_audio=None, targetdir_mp4='E:/Unknown alley/_video_out/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online-ts/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=True, clear_cache=False, translate_type=5, tts_type=0, recogn_type=0, model_name='large-v3-turbo', voice_autorate=False, video_autorate=True, cuda=True, name='E:/Unknown alley/MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online.ts', basename='MIRD-279 陰道-1冠軍2026 - MIRD-279 - 7mmtv.sx - Watch JAV Online.ts', ext='ts', dirname='E:/Unknown alley', shound_del_name=None, uuid='81d3ac32aa', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.19045-SP0
version:v3.96
frozen:True
language:zh
root_dir:E:/下載/win-pyvideotrans-v3.96

1 Replies

这是由于你使用的 Gemini AI 翻译渠道免费额度已用完导致的。Gemini API 免费层对每个模型(如 gemini-3-flash)有每日请求次数限制(本例中为20次),超出后会出现 429 配额耗尽错误。

解决方案:

  1. 等待配额重置:免费配额通常按天重置。根据错误信息,大约需要等待 33 秒后重试,但每日总限额已用尽,建议等待至次日再尝试。
  2. 更换翻译渠道:这是最直接的解决方法。在 pyVideoTrans 的翻译设置中,切换到其他可用的翻译渠道,例如:

    • DeepSeek:性价比高,需配置 API Key。
    • OpenAI/兼容接口:如配置了 GPT 或 Claude 的 API。
    • 本地 LLM:如已部署 Ollama。
    • 其他免费/付费渠道:如 Google 翻译(需代理)、百度翻译、腾讯翻译等。
  3. 升级 Gemini API 计划:如果你依赖 Gemini 的翻译质量,可以前往 Google AI Studio 为你的项目启用付费,以解除配额限制。

操作步骤:

  1. 在 pyVideoTrans 主界面,点击菜单栏的“翻译设置”。
  2. 在“翻译渠道”下拉列表中,选择一个非“Gemini AI”的其他渠道。
  3. 根据所选渠道,填写必要的 API URL 和 Key 等信息(参考知识库中对应渠道的配置指南)。
  4. 保存设置,然后重新执行翻译任务。

请查阅相关文档:

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