#2509 TaskCfg(cache_folder='C:/Users/Administrator/Desktop/视频翻译11.29/tmp13716/19d47b326e', target_dir='c:/users/administrator/

62.72* Posted at: 1 day ago 👁16

配音阶段出错:[Qwen TTS] 运行时错误:Access to model denied. Please make sure you are eligible for using the model.:
Traceback (most recent call last):
File "videotrans\task\job.py", line 224, in run
File "videotrans\task\_dubbing.py", line 47, in dubbing
File "videotrans\task\_dubbing.py", line 197, in _tts
File "videotrans\tts\__init__.py", line 299, in run
File "videotrans\tts\_base.py", line 188, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_qwentts.py", line 60, in _run
RuntimeError: Access to model denied. Please make sure you are eligible for using the model.

TaskCfg(cache_folder='C:/Users/Administrator/Desktop/视频翻译11.29/tmp13716/19d47b326e', target_dir='c:/users/administrator/desktop/8988/output/tts', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='ja', source_sub=None, target_sub='C:/Users/Administrator/Desktop/696/243bc952d6c5feeaae2291e1904bd9fb.ja.srt', source_wav=None, source_wav_output=None, target_wav='c:/users/administrator/desktop/8988/output/tts/243bc952d6c5feeaae2291e1904bd9fb.ja.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='243bc952d6c5feeaae2291e1904bd9fb.ja', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Cherry', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=4, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='C:/Users/Administrator/Desktop/696/243bc952d6c5feeaae2291e1904bd9fb.ja.srt', basename='243bc952d6c5feeaae2291e1904bd9fb.ja.srt', ext='srt', dirname='C:/Users/Administrator/Desktop/696', shound_del_name=None, uuid='19d47b326e', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.19045-SP0
version:v3.86
frozen:True
language:zh
root_dir:C:/Users/Administrator/Desktop/视频翻译11.29

1 Replies

您在使用 Qwen TTS 进行配音时遇到了“Access to model denied”的错误。这通常意味着您的 API 密钥(Key)无效、过期、额度不足,或者没有正确填写。

请按以下步骤排查和解决:

  1. 检查 API 密钥

    • 前往阿里云百炼平台(https://bailian.console.aliyun.com/)或阿里云 DashScope 平台(https://dashscope.console.aliyun.com/),确认您的账户状态正常,并已开通 Qwen-TTS 服务。
    • 复制正确的 API 密钥。
  2. 在软件中正确配置

    • 在 pyVideoTrans 主界面,点击菜单栏的 设置 -> 翻译设置
    • 找到 阿里百炼/Qwen 相关的配置项(通常标注为“阿里百炼”或“Qwen”)。
    • 将复制的 API 密钥粘贴到 KeyAPI Key 输入框中。
    • 务必确保您填写的是 TTS(语音合成) 的密钥,而不是翻译或语音识别的密钥。不同服务的密钥可能不通用。
  3. 检查配额和模型权限

    • 登录阿里云控制台,检查您的 API 密钥是否还有剩余调用额度。
    • 确认该密钥有权访问 qwen-ttsqwen-audio-tts 等具体的 TTS 模型。
  4. 尝试其他配音渠道

    • 如果问题依旧,可以暂时切换到其他免费的配音渠道,如 Edge-TTSVITS-cnen,以完成当前任务。

如果以上步骤无法解决,请提供您在“翻译设置”中配置阿里百炼/Qwen 的截图,以便进一步分析。

请查看更多参考文档:

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

Similar issues already exist

Trending Questions