#2589 TaskCfg(cache_folder='D:/Program Files/win-videotrans-v3.67-tiny/tmp/23976/speech2text', target_dir='E:/Doc/pyvideo/reco

103.196* Posted at: 1 month ago 👁66

语音识别阶段出错:[Gemini大模型识别] 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-2.5-flash
    Please retry in 10.171595271s.:
    Traceback (most recent call last):
    File "videotrans\recognition\_gemini.py", line 89, in _req
    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/rate-limit. * Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-2.5-flash Please retry in 10.171595271s.', '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': '10s'}]}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 146, in recogn
File "videotrans\recognition\__init__.py", line 231, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_gemini.py", line 118, in _exec
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\recognition\_gemini.py", line 101, in _req
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-2.5-flash
    Please retry in 10.171595271s.

TaskCfg(cache_folder='D:/Program Files/win-videotrans-v3.67-tiny/tmp/23976/speech2text', target_dir='E:/Doc/pyvideo/recogn', remove_noise=False, is_separate=False, detect_language='auto', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='E:/Doc/pyvideo/recogn/《寻找智慧》(Seeking Wisdom From Darwin to Munger) - 彼得·贝弗林.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='《寻找智慧》(Seeking Wisdom From Darwin to Munger) - 彼得·贝弗林', shibie_audio='D:/Program Files/win-videotrans-v3.67-tiny/tmp/23976/speech2text/《寻找智慧》(Seeking Wisdom From Darwin to Munger) - 彼得·贝弗林-1768116740.857734.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=4, model_name='tiny', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='E:/Downloads/《寻找智慧》(Seeking Wisdom From Darwin to Munger) - 彼得·贝弗林.mp4', basename='《寻找智慧》(Seeking Wisdom From Darwin to Munger) - 彼得·贝弗林.mp4', ext='mp4', dirname='E:/Downloads', shound_del_name=None, uuid='8f6d3f2c13', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.90
frozen:True
language:zh
root_dir:D:/Program Files/win-videotrans-v3.67-tiny

1 Replies

您遇到了 Gemini API 的免费配额限制问题。错误信息明确指出,您使用的 gemini-2.5-flash 模型每日免费请求次数已用尽(上限为20次)。

核心解决方案:

  1. 等待配额重置:免费配额通常按天重置。根据错误提示,您需要等待约10秒后重试,但每日总限额已用完,建议等待24小时后再试。
  2. 升级付费计划:如果需要持续使用,请访问 Google AI Studio 绑定支付方式,升级到付费计划以获取更高配额。
  3. 更换识别渠道:在等待期间,您可以改用其他语音识别渠道完成任务。推荐使用本地的 faster-whisper阿里FunASR(针对中文),它们没有使用次数限制。

操作步骤:

  1. 在主界面“语音识别”区域,将渠道从“Gemini大模型识别”切换为“faster-whisper(本地)”或“阿里FunASR(本地)”。
  2. 确保已正确下载对应模型(faster-whisper 模型会自动下载,FunASR 需在设置中手动下载)。
  3. 重新运行任务。

额外提示: 从日志中看到您的软件解压路径为 D:/Program Files/...,这属于系统权限目录,可能导致未知问题。建议将整个软件文件夹移动到非系统盘的纯英文路径下(如 D:/videotrans)。

请查看更多参考文档:

Post Your Reply