#9052 阿里百炼API: Access to model denied. Please make sure you are eligible for using the model.self=[QWENTTS]: uuid=None, proxy_

222.76**3 Posted at: 5 hours ago

阿里百炼API: Access to model denied. Please make sure you are eligible for using the model.
self=[QWENTTS]: uuid=None, proxy_str=None, tts_type=20, len=1, language='zh-cn', play=True, volume='+0%', pitch='+0Hz', rate='+10%', speed=1.0, has_done=0, wait_sec=1.0, dub_nums=1, error='Access to model denied. Please make sure you are eligible for using the model.', api_url='', is_cuda=False, local_dir=None, is_redubb=False, model_name=None, ainame=None
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+10%', 'role': '月白(Moon)', 'filename': 'C:\Users\Administrator\AppData\Local\Temp/pyvideotrans/20-1796193753.8554354.wav', 'tts_type': 20, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 23, in run
File "videotrans\tts\__init__.py", line 147, in run
File "videotrans\tts\_base.py", line 125, in run
videotrans.configure.excepts.DubbingSrtError: Access to model denied. Please make sure you are eligible for using the model.
self=[QWENTTS]: uuid=None, proxy_str=None, tts_type=20, len=1, language='zh-cn', play=True, volume='+0%', pitch='+0Hz', rate='+10%', speed=1.0, has_done=0, wait_sec=1.0, dub_nums=1, error='Access to model denied. Please make sure you are eligible for using the model.', api_url='', is_cuda=False, local_dir=None, is_redubb=False, model_name=None, ainame=None


=
system:Windows-10-10.0.19045-SP0
version:v4.20
frozen:True
language:zh_CN
root_dir:D:/PE

1 Replies

#1 DeepSeek reply at 5 hours ago

该报错来自阿里百炼服务端的权限校验,返回 Access to model denied,说明当前 API Key 所属账号没有所请求语音模型(音色“月白(Moon)”对应的 qwen-tts 系模型)的调用权限,并非软件本身故障。

排查与解决步骤:

  1. 开通模型服务:登录阿里云百炼控制台(bailian.console.aliyun.com),在「模型广场 / 模型服务」中确认语音合成类模型(qwen-tts 系列等)已点击「开通」并处于可用状态。百炼多数模型需单独开通,未开通即返回 Access to model denied。
  2. 核对 API Key:在 菜单 → 翻译设置 → 阿里百炼 中确认填写的是百炼平台生成的 sk- 开头密钥,且该密钥与已开通模型的服务空间属同一账号;子账号(RAM)需被授予百炼模型调用权限。
  3. 核对模型与音色匹配:在阿里百炼设置窗口中检查所选的语音合成模型名称。语音合成必须选 qwen-tts 系列模型,若错选了 qwen-asr(识别)或纯文本对话模型,会因任务与模型不匹配而报此类拒绝错误;同时“月白(Moon)”这类音色只能在支持该音色的模型下使用,音色与模型不配套同样会被拒绝。
  4. 检查账号状态:确认账号已完成实名认证、无欠费、对应模型的免费额度未用尽。额度耗尽或未实名同样表现为该错误。
  5. 若以上均确认无误仍报错,请更换为其它百炼支持的音色或改用 Edge-TTS(免费) 验证是否为账号侧权限问题,并提供 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