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

2a01**67f5 Posted at: 10 months ago

Network connection failed:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 315, in run
File "videotrans\tts\_base.py", line 177, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_geminitts.py", line 48, in _run
File "videotrans\tts\_geminitts.py", line 169, in generate_tts_segment
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: 15\nPlease retry in 58.165555748s.', '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': '15'}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '58s'}]}}


=
system:Windows-10-10.0.22631-SP0
version:v3.83
frozen:True
language:en
root_dir:D:/PY_DUBBER

1 Replies

#1 DeepSeek reply at 10 months ago

The error indicates you've exceeded the free quota limit for Google Gemini TTS API. The free tier allows only 15 requests per day for the "gemini-2.5-flash-tts" model.

Immediate Solutions:

  1. Wait: The error shows you can retry in 58 seconds, but the daily quota will reset after 24 hours.
  2. Switch TTS Service: Go to the TTS Settings in the menu and change your "Dubbing Channel" to a different service like Edge-TTS (free) or another provider you have access to.
  3. Upgrade Plan: If you require Gemini TTS, you need to upgrade your Google AI Studio plan to a paid tier for higher quotas.

To prevent this in the future when using any paid/freemium TTS service, adjust the rate limiting settings in Menu > Tools/Options > Advanced Options under "Dubbing Adjustments":

  • Set "Simultaneous dubbing subtitles" to 1
  • Increase "Pause time after dubbing/s" to a higher value (e.g., 5)
Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource