#7458 {"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': 'Yunxiao:DragonHDFlashLatestNeural(Male)', 'filename': 'C:\Users\windos\AppData\Local\Temp/pyvideotrans/33-1789802447.1676834.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 Key 无效或未正确填写,导致鉴权失败(HTTP 401)。报错的 tts_type: 33 对应 302.AI 配音渠道,它请求 https://api.302.ai/cognitiveservices/voices/list 时被服务端拒绝。

解决方案

  1. 前往 302.AI 登录,确认账户状态正常且余额充足。
  2. 在平台重新生成/复制 API Key。
  3. 打开软件菜单 设置 → TTS设置 → 302.AI(或对应配置项),重新粘贴正确的 Key 并保存。
  4. 确认 Key 前后无多余空格,且未使用其他平台的 Key 填入此处。
  5. 若问题依旧,请检查本机网络能否正常访问 302.ai(如有代理请确认配置正确)。

如以上步骤后仍报 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