#7777 Unsupported language_id 'km'. Supported languages: ar, da, de, el, en, es, fi, fr, he, hi, it, ja, ko, ms, nl, no, pl, p

175.100**4 Posted at: 13 hours ago

Unsupported language_id 'km'. Supported languages: ar, da, de, el, en, es, fi, fr, he, hi, it, ja, ko, ms, nl, no, pl, pt, ru, sv, sw, tr, zh
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 119, in run
File "videotrans\tts\_base.py", line 96, in run
File "videotrans\tts\_chatterbox.py", line 97, in _exec
File "videotrans\tts\_chatterbox.py", line 73, in _exec
File "chatterbox\mtl_tts.py", line 295, in generate

raise ValueError(

ValueError: Unsupported language_id 'km'. Supported languages: ar, da, de, el, en, es, fi, fr, he, hi, it, ja, ko, ms, nl, no, pl, pt, ru, sv, sw, tr, zh

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/ADMIN/Downloads/第001集.mp4,
输出结果保存到文件夹: C:/Users/ADMIN/Downloads/_video_out/第001集-mp4,
临时文件夹: C:/Users/ADMIN/Downloads/Compressed/win-pyvideotrans-v4.14/tmp/20560/49b29924a2
未选 清理已存在
已启用CUDA加速
未选 降噪
STT Service:Qwen-ASR(Built-in), 1.7B, 发音语言: Simplified Chinese, 断句方式:默认断句
TranslateSrt:Microsoft Translate (Free),原始语言:Simplified Chinese,目标语言:Khmer, 已选 SendSRT
TTS Service:ChatterBox(Built-in), 角色:clone, 配音语言:Khmer, 已选 二次语音识别
音量:+6%, 语速:+10%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
字幕: Hard Subtitles
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
video_duration_ms=120000


=
system:Windows-10-10.0.26200-SP0
version:v4.14
frozen:True
language:en_US
root_dir:C:/Users/ADMIN/Downloads/Compressed/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 13 hours ago

The root cause is that you selected the ChatterBox (Built-in) TTS channel for dubbing, but ChatterBox does not support Khmer (km).

Its supported languages are only: ar, da, de, el, en, es, fi, fr, he, hi, it, ja, ko, ms, nl, no, pl, pt, ru, sv, sw, tr, zh.

So it throws Unsupported language_id 'km' at the dubbing stage.

Solution: Pick a TTS channel that actually supports Khmer.

  1. Open the TTS Service (dubbing) dropdown on the main interface and switch away from ChatterBox(Built-in).
  2. Use Edge-TTS (Free) — it supports all built-in languages including Khmer and is the default recommended channel.
  3. NOTE: Voice cloning (clone role) is only available on clone-capable channels.

    If you keep the clone role, choose a clone-capable channel that also supports Khmer, otherwise clone will not work for Khmer.

    Edge-TTS does not support the clone role, so if you switch to Edge-TTS you must select a normal voice (not clone).

Recommendation for Khmer target:

  • If you need cloning: use a clone-capable channel that supports Khmer (check the supported-language list of the channel before selecting).
  • If cloning is not required: use Edge-TTS (Free), choose a Khmer voice.

Also make sure the source language, translation target, and TTS language are consistent (all set to Khmer where required).

请查阅相关文档:

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