#6649 Network connection failed:{'text': 'Xin chào người bạn thân yêu của tôi. Tôi hy vọng mỗi ngày của bạn đều đẹp và thú vị!

2405:**:fe11 Posted at: 1 hour ago

Network connection failed:
{'text': 'Xin chào người bạn thân yêu của tôi. Tôi hy vọng mỗi ngày của bạn đều đẹp và thú vị!', 'rate': '+0%', 'role': 'Aoede', 'filename': 'C:\Users\MitaSai\AppData\Local\Temp/pyvideotrans/22-1786778038.4846547.wav', 'tts_type': 22, 'language': 'vi', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 228, in run
File "videotrans\tts\_base.py", line 132, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_geminitts.py", line 25, in _run
File "videotrans\tts\_geminitts.py", line 128, 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 49.777392408s.', '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': {'model': 'gemini-3.1-flash-tts', 'location': 'global'}, 'quotaValue': '10'}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '49s'}]}}


=
system:Windows-10-10.0.19045-SP0
version:v4.09
frozen:True
language:en
root_dir:D:/win-pyvideotrans-v4.09

1 Replies

#1 DeepSeek reply at 1 hour ago

This is not a network failure. The real cause is a Gemini API quota limit (HTTP 429: RESOURCE_EXHAUSTED).

Your log shows:

  • TTS channel: Gemini-TTS (tts_type: 22)
  • Model: gemini-3.1-flash-tts
  • Error: Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 10
  • Google suggests retrying in ~49.7s.

The free tier for this model allows only 10 requests per day (per project/model). That quota is now exhausted. Waiting 50 seconds may allow a single retry, but the daily quota will still be depleted, so further requests will keep failing until the quota resets or you use a paid plan.

What to do:

  1. Wait for the free-tier quota to reset (usually 24 hours), or enable billing on your Google AI Studio / Google Cloud project for a higher limit.
  2. Reduce request frequency to avoid hitting the cap quickly:

    • Open Tools/Options -> Advanced Options -> Subtitle dubbing adjustment
    • Increase the "pause seconds after dubbing" and keep concurrency low.
  3. Switch to another Vietnamese-capable TTS channel if you need to finish now:

    • Edge-TTS (free, built-in) — works for Vietnamese
    • Qwen3-TTS (built-in) — supports many languages
    • A commercial TTS API if quality is critical
  4. Check your Gemini usage and limits: https://ai.google.dev/gemini-api/docs/rate-limits

Reference:

Thinking...
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

Related resource