#5986 Dubbing Error [Gemini TTS] Network connection failedTraceback (most recent call last):

115.76* Posted at: 3 hours ago

Dubbing Error [Gemini TTS] Network connection failed
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 154, in process_task

File "videotrans\task\dubbing.py", line 51, in dubbing

File "videotrans\task\dubbing.py", line 204, in _tts

File "videotrans\tts\__init__.py", line 207, in run

File "videotrans\tts\_base.py", line 145, 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", li
......
etails. 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 43.182103589s.', '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': '43s'}]}}
cfg=TaskCfgTTS(uuid='ce579e885f', name='E:/win-pyvideotrans-v4.05-0711/Luu Tru/SRT goc/kich_ban_review_46s.srt', dirname='E:/win-pyvideotrans-v4.05-0711/Luu Tru/SRT goc', noextname='kich_ban_review_46s', basename='kich_ban_review_46s.srt', ext='srt', target_dir='E:/win-pyvideotrans-v4.05-0711/output/tts', cache_folder='E:/win-pyvideotrans-v4.05-0711/tmp/17340/ce579e885f', is_cuda=False, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='vi', target_sub='E:/win-pyvideotrans-v4.05-0711/Luu Tru/SRT goc/kich_ban_review_46s.srt', target_wav='E:/win-pyvideotrans-v4.05-0711/output/tts/kich_ban_review_46s.wav', target_wav_output=None, tts_type=21, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Iapetus', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.26200-SP0
version:v4.05
frozen:True
language:en
root_dir:E:/win-pyvideotrans-v4.05-0711

1 Replies

This error is caused by exceeding the free tier quota for the Gemini TTS API. You received a 429 RESOURCE_EXHAUSTED error because the model gemini-3.1-flash-tts has a daily limit of 10 requests on the free plan.

Solution:

  1. Upgrade your Google AI Studio plan to a paid tier to increase the quota. The error message includes a link: https://ai.google.dev/gemini-api/docs/rate-limits.
  2. Reduce the concurrency of Gemini TTS calls. In the Advanced Options (Menu > Tools/Options > Advanced > Dubbing/Speech Synthesis), set Dubbing pause seconds to a higher value (e.g., 10-15) and ensure Dubbing concurrency is set to 1.
  3. Wait – the error indicates you can retry after approximately 43 seconds, but since the limit is daily, waiting a day may be required if the daily cap is reached.
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