#2996 TaskCfg(cache_folder='D:/peiyin/win-pyvideotrans-v3.86/tmp23308/a6c7e8a47c', target_dir='C:/Users/WIN10/Downloads/主页作品/璐

182.119* Posted at: 17 days ago 👁43

配音阶段出错:[Qwen TTS] 运行时错误: InternalError.Algo.InvalidParameter: Input should be 'Cherry', 'Serena', 'Ethan' or 'Chelsie': input.voice:
Traceback (most recent call last):
File "videotrans\task\job.py", line 224, in run
File "videotrans\task\trans_create.py", line 463, in dubbing
File "videotrans\task\trans_create.py", line 743, 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: InternalError.Algo.InvalidParameter: Input should be 'Cherry', 'Serena', 'Ethan' or 'Chelsie': input.voice

TaskCfg(cache_folder='D:/peiyin/win-pyvideotrans-v3.86/tmp23308/a6c7e8a47c', target_dir='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/_video_out/1 (106)', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='韩语', source_language_code='zh-cn', target_language_code='ko', source_sub='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/_video_out/1 (106)/zh-cn.srt', target_sub='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/_video_out/1 (106)/ko.srt', source_wav='D:/peiyin/win-pyvideotrans-v3.86/tmp23308/a6c7e8a47c/zh-cn.wav', source_wav_output='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/_video_out/1 (106)/zh-cn.m4a', target_wav='D:/peiyin/win-pyvideotrans-v3.86/tmp23308/a6c7e8a47c/target.wav', target_wav_output='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/_video_out/1 (106)/ko.m4a', subtitles='', novoice_mp4='D:/peiyin/win-pyvideotrans-v3.86/tmp23308/a6c7e8a47c/novoice.mp4', noextname='1 (106)', shibie_audio=None, targetdir_mp4='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/_video_out/1 (106)/1 (106).mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Elias', copysrt_rawvideo=False, clear_cache=True, translate_type=0, tts_type=4, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=True, cuda=False, name='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/视频作品/1 (106).mp4', basename='1 (106).mp4', ext='mp4', dirname='C:/Users/WIN10/Downloads/主页作品/璐璐❤️1...4韩国/视频作品', shound_del_name=None, uuid='a6c7e8a47c', remove_silent_mid=False, align_sub_audio=True, 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:D:/peiyin/win-pyvideotrans-v3.86

1 Replies

这是由于在 Qwen-TTS 配音渠道中,指定的音色名称与当前启动的 Qwen-TTS 模型所支持的音色列表不匹配导致的。

解决方案:

  1. 检查并修改音色名称:根据错误信息,当前启动的 Qwen-TTS 模型仅支持 'Cherry''Serena''Ethan''Chelsie' 这几个音色。请前往 pyVideoTrans 的“配音设置”或任务配置中,将 voice_role 参数修改为上述四个音色之一。
  2. 确认 Qwen-TTS 模型类型:此错误表明你启动的是 Qwen-TTS 的 自定义音色模型 (CustomVoice)。该模型内置了固定的音色列表(如报错所示),不支持 'Elias' 或其他未列出的音色。

    • 如果你想使用 'Elias' 或其他特定音色,需要启动 语音克隆模型 (Base),并上传参考音频进行克隆,或者使用该模型支持的其他内置音色。
    • 请参考知识库中“6.7 qwen-tts(本地)配音渠道遇到的问题”部分,明确你启动的模型类型(语音克隆模型、自定义音色模型、声音设计模型)及其对应的功能限制。
  3. 重启任务:修改音色设置后,重新执行配音任务。

总结:确保在 pyVideoTrans 中配置的 voice_role(音色名称)与你本地启动的 Qwen-TTS 服务模型所支持的音色列表完全一致。

请查阅相关文档:

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.

Related resource