#7457 {"error":{"message":"401, message='HTTP Error 401: ', url='https://api.302.ai/cognitiveservices/voices/list'"}}:{'text':

2605**83d Posted at: 2 hours ago

{"error":{"message":"401, message='HTTP Error 401: ', url='https://api.302.ai/cognitiveservices/voices/list'"}}:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Xiaochen Dragon HD Latest(Female)', 'filename': 'C:\Users\windos\AppData\Local\Temp/pyvideotrans/33-1789802275.787894.wav', 'tts_type': 33, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 232, in run
File "videotrans\tts\_base.py", line 97, in run
File "videotrans\tts\_base.py", line 200, in _exec
File "videotrans\tts\_base.py", line 160, in _local_mul_thread
File "videotrans\tts\_base.py", line 212, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_ai302tts.py", line 66, in _run
videotrans.configure.excepts.StopTask: {"error":{"message":"401, message='HTTP Error 401: ', url='https://api.302.ai/cognitiveservices/voices/list'"}}


=
system:Windows-10-10.0.22631-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:F:/sppy

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 302.AI 配音渠道的 API 认证失败,401 表示你填写的 302.AI 密钥无效或未生效。

  1. 检查密钥:菜单 → TTS 设置(或翻译设置)→ 302.AI,确认填写的 appkey 正确、无多余空格。
  2. 登录 https://302.ai 后台,确认账户余额充足、密钥未被删除或禁用。
  3. 若刚注册,确认已开通对应服务权限。
  4. 保存后重启软件再试。

如密钥确认无误仍报 401,请将 logs/ 目录下最新日志底部约 30 行复制出来以便进一步分析。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource