#735 RuntimeError: 403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/ttsVolcEngineTTS

*390:7cb2* Posted at: 4 hours ago 👁5

403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/ttsVolcEngineTTS:Traceback (most recent call last):

File "videotrans\util\ListenVoice.py", line 18, in run

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

File "videotrans\tts\_base.py", line 142, in run

RuntimeError: 403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/ttsVolcEngineTTS

=====

Windows-10-10.0.19045-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于在使用字节火山语音合成(配音)服务时,API请求被拒绝(403错误)导致的。通常是因为API密钥无效、配额不足、或请求频率超限。

解决方法:

1. 检查API配置:请前往软件菜单 → TTS设置 → 字节火山语音合成,确认你的AppID、Access Key和Secret Key填写正确且有效。这些密钥需要先在字节火山开放平台申请并开通语音合成服务。

2. 确认服务状态和配额:登录字节火山控制台,检查:

  • 语音合成(TTS)服务是否已正确开通
  • API密钥是否有效且未过期
  • 账户余额或免费额度是否充足
  • 是否有地域限制或其他使用限制

3. 降低请求频率:如果是因为请求频率过高被限制,可以尝试:

  • 在软件菜单 → 工具 → 高级选项 → 配音调整中,将“同时配音字幕数”调小(例如改为1)
  • 增加“配音后暂停时间/秒”(例如设为3-5秒)

4. 临时解决方案:如果问题持续存在,可以暂时切换到其他配音渠道,如edge-TTS(免费但可能限流)或Azure TTS等。

5. 联系字节火山支持:如果确认配置正确且账户正常,但仍出现403错误,建议联系字节火山官方技术支持寻求帮助。

请注意,使用第三方API服务时产生的任何费用和限制都与pyVideoTrans软件本身无关,需要您自行在对应平台管理和维护。

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