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

138.199* Posted at: 5 days ago 👁33

403 Client Error: Forbidden for url: https://openspeech.bytedance.com/api/v1/vc/submit?appid=8846195671&language=zh-CN&use_itn=True&caption_type=speech&max_lines=1:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 185, in run
File "videotrans\recognition\_base.py", line 78, 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=8846195671&language=zh-CN&use_itn=True&caption_type=speech&max_lines=1


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:E:/pyVideoTrans视频翻译v3.82

1 Replies

这个错误是由于字节跳动语音识别API返回403 Forbidden导致的。可能的原因包括:

  1. API密钥无效或过期:请检查您在"语音识别设置"中为"字节火山语音识别"配置的API密钥是否正确且有效。
  2. API配额用尽:您的账户可能已达到API使用限制或配额已用完。
  3. 网络或地域限制:某些地区的网络可能无法正常访问该API服务。

解决方案:

  1. 切换语音识别渠道:暂时切换到其他可用的语音识别服务,如:

    • faster-whisper(本地) - 本地模型,无需API密钥
    • openai-whisper(本地) - 本地模型,无需API密钥
    • Google语音识别 - 可能需要配置API密钥
  2. 检查API配置

    • 进入菜单 翻译设置 -> 语音识别设置
    • 确认"字节火山语音识别"的API密钥配置正确
    • 如有需要,重新申请或更新API密钥
  3. 使用网络代理:如果存在网络访问问题,可在"语音识别设置"中配置网络代理。

建议优先使用本地语音识别模型(如faster-whisper)以避免API限制问题。

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