#6204 Network connection failed:Traceback (most recent call last):

45.67* Posted at: 10 hours ago

Network connection failed:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 133, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_geminitts.py", line 23, in _run
File "videotrans\tts\_geminitts.py", line 126, 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-3.1-flash-tts\nPlease retry in 3.939853092s.', '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-3.1-flash-tts'}, 'quotaValue': '10'}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '3s'}]}}


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:en
root_dir:C:/Users/fars rayan/Desktop/translator

1 Replies

This is caused by your Gemini API free-tier quota being exhausted. The error explicitly states: Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 10, model: gemini-3.1-flash-tts. That means your Google Gemini free plan allows only 10 requests per day for this TTS model, and you have already used them all.

Solutions:

  1. Wait for quota reset – Free-tier quotas usually reset daily. Check the exact reset time from the error message by visiting Google AI Studio quota page.
  2. Upgrade to a paid plan or enable billing – If you need higher usage, go to Google AI Studio, enable billing, and the quota will be significantly raised.
  3. Switch to another TTS channel – For most users, the built-in Edge-TTS is completely free and works well for many languages. You can also use other local TTS channels (e.g., Qwen-TTS, F5-TTS, OmniVoice) or commercial APIs.
  4. Reduce frequency – Lower the number of concurrent TTS threads and increase the pause seconds between requests in Advanced Options → Subtitle Dubbing Adjustments, but note that the free-tier daily cap is 10, so this will not avoid the quota entirely.

Note:

Your current version is v4.03, which is older. While not the cause of this specific error, updating to the latest version (v4.08) is generally recommended for bug fixes and improved compatibility.

Please check the related documentation:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource