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

24.133* Posted at: 3 hours ago 👁6

Network connection failed:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 308, in run
File "videotrans\tts\_base.py", line 179, 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: 10, model: gemini-2.5-flash-tts\nPlease retry in 34.226178587s.', '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': '34s'}]}}


=
system:Windows-10-10.0.26200-SP0
version:v3.91
frozen:True
language:en
root_dir:D:/VTRANSLATE

1 Replies

The error indicates you have exceeded the free tier quota for the Gemini TTS API. The free tier allows only 10 requests per day per model (gemini-2.5-flash-tts). You need to wait for the quota to reset (in about 34 seconds according to the error) or upgrade your Google AI Studio plan.

To resolve this immediately, you can switch to a different, free TTS engine within pyVideoTrans:

  1. In the main interface, go to the "Dubbing" (配音) section on the 4th line.
  2. Change the "Dubbing Channel" (配音渠道) from Gemini-TTS to a free alternative like:

    • Edge-TTS (Recommended, high quality, online)
    • VITS-cnen (Local, built-in)
    • piper-tts (Local, built-in)
  3. Select a voice role and proceed.

If you must use Gemini-TTS, you need to check your quota and billing in Google AI Studio. Ensure you have a paid plan with sufficient quota for the generate_content requests.

Please refer to the documentation for more information:

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

Similar issues already exist

Trending Questions