#1151 RuntimeError: 401 Client Error: Unauthorized for url: https://openspeech.bytedance.com/api/v1/ttsVolcEngineTTS

183.253* Posted at: 7 days ago 👁22

401 Client Error: Unauthorized 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: 401 Client Error: Unauthorized for url: https://openspeech.bytedance.com/api/v1/ttsVolcEngineTTS


=
Windows-10-10.0.19045-SP0
version:v3.80
frozen:True
language:zh

1 Replies

这个错误是由于火山引擎TTS的API密钥无效或未正确配置导致的401未授权错误。请按以下步骤解决:

  1. 检查火山引擎TTS配置

    • 在菜单栏选择 TTS配音设置
    • 确认你选择了"火山引擎TTS"作为配音渠道
    • 检查火山引擎的Access Key和Secret Key是否正确填写
  2. 重新获取API密钥

  3. 测试配置

    • 在TTS配音设置界面,输入测试文本并点击"测试"按钮
    • 如果测试成功,说明配置正确
  4. 备用方案

    • 如果问题持续,可暂时切换到其他TTS服务,如Edge-TTS(免费)或Azure TTS

如果以上步骤无法解决问题,请提供完整的日志文件(位于软件根目录下的 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