#1239 RuntimeError: WebSocket upgrade failed: Too many requests (429). Please check subscription information and region name.

23.247* Posted at: 21 hours ago 👁11

运行时错误:WebSocket upgrade failed: Too many requests (429). Please check subscription information and region name. USP state: Sending. Received audio size: 0 bytes.:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 243, in run
File "videotrans\tts\_base.py", line 182, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_azuretts.py", line 157, in _run
RuntimeError: WebSocket upgrade failed: Too many requests (429). Please check subscription information and region name. USP state: Sending. Received audio size: 0 bytes.


=
system:Windows-10-10.0.22631-SP0
version:v3.82
frozen:True
language:zh
root_dir:E:/win-videotrans-v3.82

1 Replies

这个错误是由于 Azure TTS 服务请求频率过高导致的 429 限制错误。请按以下步骤解决:

  1. 降低请求频率

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在"配音调整"区域,将"同时配音字幕数"改为 1
    • 将"配音后暂停时间/秒"设置为 5 或更高
  2. 检查 Azure 配置

    • 确认在 TTS配音设置 中输入的 Azure 订阅密钥和区域名称正确
    • 检查 Azure 账户的配额和限制,确保没有超出使用限制
  3. 临时解决方案

    • 如果问题持续,可以暂时切换到其他 TTS 服务,如 Edge-TTS 或 OpenAI TTS
    • 等待一段时间后再重试 Azure TTS

如果以上调整后问题仍然存在,请提供完整的日志文件(位于 E:/win-videotrans-v3.82/logs/ 目录下)以便进一步分析。

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