#7454 {"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-1789801791.5868335.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:/视频配音

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:302.AI 配音渠道返回 HTTP 401 未授权,说明 302.AI 的 API Key 未填写、填写错误、已失效或账户无余额/权限。

解决方案:

  1. 打开软件顶部菜单 翻译设置 → 找到 302.AI → 重新填写正确的 appkey 并保存。
  2. 登录 302.ai 官网检查该 Key 是否有效、账户余额是否充足。
  3. 如仍失败,尝试在 配音渠道 中改用 Edge-TTS(免费) 或其他渠道。

补充:报错中的 F:/视频配音 路径含中文,虽不一定导致 401,但建议软件安装目录改为纯英文路径(如 F:\pyVideoTrans),以避免其他潜在异常。

请查阅相关文档:

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