#4316 TaskCfgVTT(is_cuda=True, uuid='8e7c680f78', cache_folder='D:/ruanjian/win-pyvideotrans-v3.99-420/tmp/10096/8e7c680f78',

103.172* Posted at: 6 hours ago 👁11

配音阶段出错 [Qwen3-TTS(本地)] Traceback (most recent call last):
File "videotrans\process\tts_fun.py", line 122, in qwen3tts_fun
File "torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "D:\ruanjian\win-pyvideotrans-v3.99-420\_internal\qwen_tts\inference\qwen3_tts_model.py", line 563, in generate_voice_clone

self._validate_languages(languages)

File "D:\ruanjian\win-pyvideotrans-v3.99-420\_internal\qwen_tts\inference\qwen3_tts_model.py", line 163, in _validate_languages

raise ValueError(f"Unsupported languages: {bad}. Supported: {sorted(supported)}")

ValueError: Unsupported languages: ['Thai']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish']

Traceback (most recent call last):
File "videotrans\task\job.py", line 213, in run
File "videotrans\task\trans_create.py", line 735, in dubbing
File "videotrans\task\trans_create.py", line 1047, in _tts
File "videotrans\tts\__init__.py", line 369, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_qwenttslocal.py", line 53, in _exec
File "videotrans\configure\_base.py", line 289, in _new_process
RuntimeError: Traceback (most recent call last):
File "videotrans\process\tts_fun.py", line 122, in qwen3tts_fun
File "torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "D:\ruanjian\win-pyvideotrans-v3.99-420\_internal\qwen_tts\inference\qwen3_tts_model.py", line 563, in generate_voice_clone

self._validate_languages(languages)

File "D:\ruanjian\win-pyvideotrans-v3.99-420\_internal\qwen_tts\inference\qwen3_tts_model.py", line 163, in _validate_languages

raise ValueError(f"Unsupported languages: {bad}. Supported: {sorted(supported)}")

ValueError: Unsupported languages: ['Thai']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish']
TaskCfgVTT(is_cuda=True, uuid='8e7c680f78', cache_folder='D:/ruanjian/win-pyvideotrans-v3.99-420/tmp/10096/8e7c680f78', target_dir='D:/Videos/剪映导出文档/_video_out/4月27日-1-mp4', source_language='简体中文', source_language_code='zh-cn', source_sub='D:/Videos/剪映导出文档/_video_out/4月27日-1-mp4/zh-cn.srt', source_wav='D:/ruanjian/win-pyvideotrans-v3.99-420/tmp/10096/8e7c680f78/zh-cn.wav', source_wav_output='D:/Videos/剪映导出文档/_video_out/4月27日-1-mp4/zh-cn.m4a', target_language='泰国语', target_language_code='th', target_sub='D:/Videos/剪映导出文档/_video_out/4月27日-1-mp4/th.srt', target_wav='D:/ruanjian/win-pyvideotrans-v3.99-420/tmp/10096/8e7c680f78/target.wav', target_wav_output='D:/Videos/剪映导出文档/_video_out/4月27日-1-mp4/th.m4a', name='D:/Videos/剪映导出文档/4月27日-1.mp4', noextname='4月27日-1', basename='4月27日-1.mp4', ext='mp4', dirname='D:/Videos/剪映导出文档', shound_del_name=None, translate_type=2, tts_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='D:/Videos/剪映导出文档/_video_out/4月27日-1-mp4/4月27日-1.mp4', novoice_mp4='D:/ruanjian/win-pyvideotrans-v3.99-420/tmp/10096/8e7c680f78/novoice.mp4', is_separate=True, embed_bgm=True, instrument='D:/ruanjian/win-pyvideotrans-v3.99-420/tmp/10096/8e7c680f78/instrument.wav', vocal='D:/ruanjian/win-pyvideotrans-v3.99-420/tmp/10096/8e7c680f78/vocal.wav', back_audio='', clear_cache=False, background_music=None, subtitle_type=2, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/ruanjian/win-pyvideotrans-v3.99-420

1 Replies

报错原因:本地 Qwen3-TTS 模型不支持泰语配音,其支持的语言列表为 ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish'],而您选用的“泰国语”不在支持范围内。

解决方案:

  1. 更换支持泰语的免费配音渠道,推荐使用 Edge-TTS(微软免费,支持所有语言)或 OmniVoice-TTS(支持全部语言克隆)。
  2. 如果仍需使用本地克隆效果,可尝试 F5-TTS 等支持多语言及零样本声音克隆的渠道,但需确保您已独立部署其 API 服务(通常端口 7860),并在菜单→TTS设置中配置好 API 地址和参考音频。
  3. 修改配音渠道后,注意以下优化点(您已启用 clone 角色):

    • 保持 分离人声背景声 选中(您已开启)。
    • 进入 菜单→工具/选项→高级选项→语音识别参数,将 最短语音持续毫秒 设为 3000最长语音持续秒数 设为 10,并选中 Whisper预分割音频合并过短字幕到相邻,确保生成的语音片段时长落在多数克隆渠道要求的 3~10 秒内。

请查阅相关文档:

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