#3646 requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/vc/submit?ap

2409:8a62* Posted at: 1 hour ago 👁5

403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/vc/submit?appid=2715702929&language=zh-CN&use_itn=True&caption_type=speech&max_lines=1:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 17, in run
File "videotrans\recognition\__init__.py", line 220, in run
File "videotrans\recognition\_base.py", line 141, in run
File "videotrans\recognition\_doubao.py", line 65, in _exec
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/vc/submit?appid=2715702929&language=zh-CN&use_itn=True&caption_type=speech&max_lines=1


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:zh
root_dir:D:/Videotrans

1 Replies

这是由于字节火山语音识别API请求被拒绝(403错误)导致的。通常是因为API密钥无效、未开通服务、或请求频率超限。

解决方案:

  1. 确认服务开通与密钥:确保已在字节火山方舟平台开通“语音识别极速版”服务,并获取了正确的AppIDAccessToken。在pyVideoTrans的“菜单-翻译设置-字节火山语音识别设置”中正确填写。
  2. 检查密钥有效期:字节火山的AccessToken有效期为1个月,请确认密钥未过期。
  3. 降低请求频率:如果短时间内处理了大量任务,可能触发限流。请暂停使用,等待一段时间后再试。
  4. 验证账户余额:确认字节火山账户有足够的余额或服务未欠费。
  5. 切换识别渠道:作为临时替代,可改用其他语音识别渠道,例如本地的faster-whisperQwen-ASR

请查阅相关文档:

Post Your Reply