点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1986 Please retry in 57.928940535s.

38.90* Posted at: 1 day ago 👁14

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/usage?tab=rate-limit.

  • Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-2.5-flash
    Please retry in 57.928940535s.:Traceback (most recent call last):
    File "videotrans\translator\_gemini.py", line 111, in _item_task
    File "google\genai\models.py", line 5783, in generate_content_stream
    File "google\genai\models.py", line 4666, in _generate_content_stream
    File "google\genai\_api_client.py", line 774, in request_streamed
    File "google\genai\_api_client.py", line 672, in _request
    File "google\genai\errors.py", line 101, in raise_for_response
    google.genai.errors.ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': '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/usage?tab=rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-2.5-flash\nPlease retry in 57.928940535s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': '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-2.5-flash'}, 'quotaValue': '20'}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '57s'}]}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 932, in run
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 137, 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 131, 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/usage?tab=rate-limit.

  • Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-2.5-flash
    Please retry in 57.928940535s.


=
system:Windows-10-10.0.26100-SP0
version:v3.87
frozen:True
language:zh
root_dir:E:/ruanjian/win-pyvideotrans-v3.87

1 Replies

您遇到了 Google Gemini API 的免费配额限制。错误信息显示,您使用的 gemini-2.5-flash 模型免费层每日请求限制为 20 次,现已超出,需要等待约 58 秒后才能重试。

核心解决方案:

  1. 等待并降低请求频率:软件会自动重试,但为避免再次超限,请在 工具 -> 选项 -> 高级选项 的“字幕翻译调整”区域,将“每批字幕行数”设置为 1,并将“翻译后暂停秒”设置为 5 或更高。
  2. 升级 API 配额:前往 Google AI StudioGoogle Cloud Console,为您的项目启用付费功能或申请更高的免费配额。
  3. 切换翻译渠道:在软件主界面的“翻译设置”中,暂时切换到其他翻译渠道(如 DeepSeek、微软、Google 传统翻译等),待 Gemini 配额重置(通常是 UTC 时间 0 点)后再使用。

操作步骤:

  1. 在 pyVideoTrans 菜单栏,点击 工具 -> 选项 -> 高级选项
  2. 找到 字幕翻译调整 部分。
  3. 每批字幕行数 修改为 1
  4. 翻译后暂停秒 修改为 5 或更大值(例如 10)。
  5. 点击“确定”保存设置,然后重新尝试翻译任务。

如果问题持续存在,请检查您的 Google Cloud 账单和配额设置。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions