#2628 openai.RateLimitError: Error code: 429 - {'error': {'message': 'validation error for request, field invalid: voice, allo

205.185* Posted at: 9 hours ago 👁9

请求过于频繁,请稍后重试或调大暂停时间 Error code: 429 - {'error': {'message': 'validation error for request, field invalid: voice, allowed values are: nova, shimmer, echo, onyx, fable, alloy', 'type': 'invalid_request_error', 'param': 'voice', 'code': 'field_invalid'}}:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 290, in run
File "videotrans\tts\_base.py", line 179, in run
File "videotrans\tts\_openaitts.py", line 73, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_openaitts.py", line 56, in _run
File "openai\_response.py", line 626, in enter
File "openai\resources\audio\speech.py", line 103, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.RateLimitError: Error code: 429 - {'error': {'message': 'validation error for request, field invalid: voice, allowed values are: nova, shimmer, echo, onyx, fable, alloy', 'type': 'invalid_request_error', 'param': 'voice', 'code': 'field_invalid'}}


=
system:Windows-10-10.0.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.92

1 Replies

您遇到的问题包含两个关键错误:

  1. 429 请求频率限制:这是 OpenAI TTS 接口的限流提示。
  2. voice 参数无效:您选择的配音角色(voice)不在 OpenAI TTS 当前支持的列表中。

请按以下步骤解决:

第一步:修正配音角色

错误信息明确指出,OpenAI TTS 当前仅支持以下角色:nova, shimmer, echo, onyx, fable, alloy

  1. 在主界面第4行“配音”区域,点击“配音角色”下拉框。
  2. 从列表中选择一个上述支持的英文角色名(例如 alloynova)。

第二步:降低请求频率,避免 429 错误

  1. 在菜单栏选择 工具 -> 高级选项
  2. 找到 “配音调整” 区域,进行以下设置:

    • 同时配音字幕数:建议改为 1
    • 配音后暂停时间/秒:建议改为 5 或更高。
  3. 点击“保存”并重启软件。

完成以上设置后,重新尝试翻译任务即可。

请查看更多参考文档:

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