#3699 google.genai.errors.ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current q

117.4* Posted at: 2 hours ago 👁5

Network connection failed:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 360, in run
File "videotrans\tts\_base.py", line 178, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_geminitts.py", line 43, in _run
File "videotrans\tts\_geminitts.py", line 156, in generate_tts_segment
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", line 187, in reraise
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "google\genai\_api_client.py", line 1189, in _request_once
File "google\genai\errors.py", line 121, in raise_for_response
File "google\genai\errors.py", line 146, in raise_error
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. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 10, model: gemini-2.5-flash-tts\nPlease retry in 6.343969865s.', '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-tts'}, 'quotaValue': '10'}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '6s'}]}}


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:en
root_dir:G:/pyvideo

1 Replies

This error is caused by exceeding the free quota limit of the Gemini TTS API.

The error message indicates that you have exceeded the free tier quota for the gemini-2.5-flash-tts model. The free tier allows only 10 requests per day per project for this model.

Solution:

  1. Switch to a free TTS channel: Since you are using the free tier, it's recommended to switch to a completely free and unlimited TTS channel, such as Edge-TTS.

    • In the "Voice Synthesis (TTS)" section of the main interface, change the channel from "Gemini TTS" to "Edge-TTS (Free)".
  2. If you must use Gemini TTS: You need to upgrade your Google AI Studio/Gemini API plan to a paid tier to increase your quota. Visit the Google AI Studio billing page to manage your plan and billing details.
  3. Adjust advanced settings (if using other paid TTS channels): For paid TTS APIs that may have rate limits (like Edge-TTS can also return 403 errors under high concurrency), you can adjust the settings to avoid being throttled.

    • Go to Menu -> Tools/Options -> Advanced Options.
    • In the "Subtitle Dubbing Adjustment" section:

      • Set Concurrent dubbing threads to 1.
      • Set Pause seconds after dubbing to 5 or 10.

Note: The Gemini TTS channel is a paid service (beyond the very limited free tier). For consistent and free dubbing, Edge-TTS is the recommended default choice.

Please refer to the relevant documentation:

Post Your Reply