#1049 gtts.tts.gTTSError: 429 (Too Many Requests) from TTS API. Probable cause: Unknown

113.66* Posted at: 12 hours ago 👁8

配音阶段出错:[Google TTS] 操作失败,请稍后重试:
Traceback (most recent call last):
File "gtts\tts.py", line 279, in stream
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://www.google.com/sorry/index?continue=https://translate.google.com/_/TranslateWebserverUi/data/batchexecute&q=EgQmTIwPGKORyscGIjC3uN9mQ5UM_RA06xWcbAHY5FkDwtmaXAS1jW8J2FKfTRXcMybX8ANOKvFlOtwkAXIyAnJSWgFD

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 185, in run
File "videotrans\task\_dubbing.py", line 47, in dubbing
File "videotrans\task\_dubbing.py", line 186, in _tts
File "videotrans\tts\__init__.py", line 284, in run
File "videotrans\tts\_base.py", line 193, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_gtts.py", line 44, in _run
File "gtts\tts.py", line 335, in save
File "gtts\tts.py", line 316, in write_to_fp
File "gtts\tts.py", line 283, in stream
gtts.tts.gTTSError: 429 (Too Many Requests) from TTS API. Probable cause: Unknown

=====
Windows-10-10.0.19045-SP0
version:v3.81
frozen:True
language:zh

1 Replies

这是 Google TTS 的请求频率过高导致的 429 错误。请按以下步骤解决:

  1. 切换配音渠道:在 TTS 配音设置中,暂时切换到其他配音渠道,如 Edge-TTS(免费)Azure TTS
  2. 调整请求频率(如果仍需使用 Google TTS):

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在"配音调整"区域,将"同时配音字幕数"改为 1
    • 将"配音后暂停时间/秒"设置为 5 或更高。
  3. 等待一段时间:Google TTS 的限制通常是暂时的,等待几分钟到几小时后再试。

建议优先使用 Edge-TTS 或其他稳定的 TTS 服务来避免此类问题。

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

Trending Questions