#7455 {"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-1789801915.3064358.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 配音渠道(tts_type=33)返回 HTTP 401,说明 API Key 未填写、填写错误或已失效/欠费,导致请求 /cognitiveservices/voices/list 被拒绝。

解决步骤:

  1. 登录 302.AI 官网(302.ai)确认账号状态正常、有余额,并重新生成/复制 API Key。
  2. 打开软件顶部菜单 翻译设置(或 TTS 设置)→ 找到 302.AI 配置项,粘贴正确的 appkey 并保存。
  3. 若之前用的是其他渠道的 key,请勿混用;302.AI 的 key 与其他平台不通用。
  4. 保存后切换配音渠道重新执行。若仍报 401,请检查是否有代理干扰(可在对齐控制行右侧代理框清空后重试)。

注意:角色列表接口需要读取 302.AI 的音色库,一旦 key 无效会直接抛出 StopTask 终止整个任务。

请查阅相关文档:

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