#807 requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://openspeech.bytedance.com/api/v1/vc/submit

*253.113* Posted at: 1 day ago 👁11

操作系统错误 (None): None:Traceback (most recent call last):

File "/Users/xmai/pyvideotrans/videotrans/util/TestSTT.py", line 18, in run

res = recognition.run(

File "/Users/xmai/pyvideotrans/videotrans/recognition/__init__.py", line 211, in run

return DoubaoRecogn(kwargs).run()

File "/Users/xmai/pyvideotrans/videotrans/recognition/_base.py", line 70, in run

return self._exec()

File "/Users/xmai/pyvideotrans/videotrans/recognition/_doubao.py", line 67, in _exec

res.raise_for_status()

File "/Users/xmai/pyvideotrans/xmai/lib/python3.10/site-packages/requests/models.py", line 1026, in raise_for_status

raise HTTPError(http_error_msg, response=self)

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://openspeech.bytedance.com/api/v1/vc/submit?appid=323223&language=zh-CN&use_itn=True&caption_type=speech&max_lines=1

=====

macOS-26.0.1-arm64-arm-64bit

version:v3.80

frozen:False

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个错误是由于字节火山语音识别API认证失败导致的401未授权错误。问题出现在您配置的字节火山API密钥或AppID不正确或已失效。

问题分析:

  • 错误代码 401 Client Error: Unauthorized 表明API服务器拒绝了您的请求
  • 从URL中可以看到您使用的AppID是 323223
  • 这通常意味着:API密钥错误、AppID不存在、账户余额不足、或API服务未正确开通

解决方案:

1. 检查字节火山控制台配置

  • 登录字节火山开放平台控制台
  • 确认您的AppID 323223 是否正确
  • 检查对应的API密钥是否填写正确
  • 确保语音识别服务已开通并授权

2. 在软件中重新配置

  • 打开pyVideoTrans软件
  • 进入 菜单 → 语音识别设置 → 字节火山字幕生成
  • 重新填写正确的AppID和API密钥
  • 点击"测试"按钮验证配置是否正确

3. 其他可能原因

  • 检查账户余额是否充足
  • 确认API服务是否在有效期内
  • 如果问题持续,可以暂时切换到其他语音识别渠道,如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