#7747 配音阶段出错 [302.AI] {

2a03**513 Posted at: 1 hour ago

配音阶段出错 [302.AI] {"error":{"message":"401, message='HTTP Error 401: ', url='https://api.302.ai/cognitiveservices/voices/list'"}}
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 156, in process_task

File "videotrans\task\dubbing.py", line 56, in dubbing

File "videotrans\task\dubbing.py", line 210, in _tts

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'"}}
[DubbingSrt]语音合成: self.out_ext='m4a',self.is_multi_role=True
[TaskCfgTTS]
原始输入文件名: C:/Users/windos/Desktop/【字幕】A.Wild.Last.Boss.Appeared.2025.S02E01.Mobile.Capital.Blutgang.Has.Appeared.1080p.CR.WEB-DL.AAC2.0.H.264-SmartWeb-FasterWhisper ✨-日本語-LLM 大模型翻译.srt,
输出结果保存到文件夹: F:/视频配音/output/tts,
临时文件夹: F:/sppy/tmp/30280/1b8d2975ed
未启用CUDA加速
配音渠道:302.AI, 角色:Xiaoxiao:DragonHDFlashLatestNeural(Female), 配音语言:zh-cn
音量:+0%, 语速:+0%, 未选 音频加速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
代理地址:http://127.0.0.1:7897


=
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 1 hour ago

错误为 302.AI 返回 HTTP 401,表示身份认证失败,通常是 API Key 未填写、填写错误、已失效或账户无权限/余额不足。

排查步骤:

  1. 打开 菜单(Menu) -> 翻译设置/配音设置 -> 302.AI,确认 API Key(appkey)已正确填写,无多余空格。

  2. 登录 302.ai 官网检查该 Key 是否有效、账户是否有余额、是否具备语音合成(TTS)权限。

  3. 若刚修改过 Key,重启软件后重试。

  4. 你当前填写了代理 http://127.0.0.1:7897,302.AI 为国内可直连服务,建议先清空代理文本框再试,排除代理干扰。

  5. 若仍报 401,可临时更换配音渠道(如 Edge-TTS 免费渠道)验证是否为 302.AI 账号侧问题。

请查阅相关文档:

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