#1865 RuntimeError: Access to model denied. Please make sure you are eligible for using the model.

2408:8226* Posted at: 3 hours ago 👁9

运行时错误:Access to model denied. Please make sure you are eligible for using the model.:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 299, in run
File "videotrans\tts\_base.py", line 177, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_qwentts.py", line 65, in _run
RuntimeError: Access to model denied. Please make sure you are eligible for using the model.


=
system:Windows-10-10.0.19045-SP0
version:v3.89
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.84

1 Replies

这个错误表明您使用的阿里Qwen TTS模型访问被拒绝。这通常是由于API密钥无效、过期,或者该模型需要特定的权限或付费套餐才能使用。

请按以下步骤排查:

  1. 检查API密钥

    • 前往阿里云百炼平台(https://bailian.console.aliyun.com/),确认您的API密钥(api_key)和密钥ID(access_key_id)填写正确且未过期。
    • 确保在pyVideoTrans的 设置 -> 翻译设置 中,阿里百炼的 api_keyaccess_key_id 已正确填写。
  2. 检查模型权限

    • 登录阿里云百炼控制台,在“模型广场”或“我的模型”中,确认您要使用的Qwen TTS模型(例如 qwen-tts)是否已“开通”或“购买”。部分模型可能需要单独申请或付费。
  3. 切换配音渠道

    • 如果问题无法立即解决,建议暂时切换到其他可用的配音渠道,例如 Edge-TTS(免费)微软Azure TTS,以继续您的工作。
  4. 查看官方文档

    • 关于阿里百炼模型的具体使用资格和计费方式,请参考其官方文档:https://help.aliyun.com/zh/model-studio/

如果以上步骤无法解决,请提供更完整的日志文件(位于 D:/win-videotrans-v3.84/logs/ 目录下),以便进一步分析。

Post Your Reply
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.

Donate: https://ko-fi.com/jianchang512

Trending Questions