#3735 ValueError: Unsupported languages: ['Vietnamese']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italia

117.4* Posted at: 2 hours ago 👁7

Traceback (most recent call last):
File "videotrans\process\tts_fun.py", line 90, in qwen3tts_fun
File "torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "G:\pyvideo\_internal\qwen_tts\inference\qwen3_tts_model.py", line 815, in generate_custom_voice

self._validate_languages(languages)

File "G:\pyvideo\_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: ['Vietnamese']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish']
:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 346, in run
File "videotrans\tts\_base.py", line 136, 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 90, in qwen3tts_fun
File "torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "G:\pyvideo\_internal\qwen_tts\inference\qwen3_tts_model.py", line 815, in generate_custom_voice

self._validate_languages(languages)

File "G:\pyvideo\_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: ['Vietnamese']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish']


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:en
root_dir:G:/pyvideo

1 Replies

The error occurs because the Qwen-TTS (local) model you are using does not support the target language 'Vietnamese'. The model only supports a limited set of languages: 'auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', and 'spanish'.

To resolve this, you have two main options:

  1. Switch to a different TTS (text-to-speech) channel that supports Vietnamese.

    • In the "Dubbing Channel" section of the main interface, change from "Qwen-TTS(local)" to a channel that supports Vietnamese.
    • Recommended free channel: Edge-TTS(free) supports all languages, including Vietnamese.
    • Other potential channels: Check the documentation for other TTS channels (e.g., F5-TTS, CosyVoice, commercial APIs like Azure TTS, Qwen-TTS(bailian)) to confirm their Vietnamese language support.
  2. Change your target language to one supported by Qwen-TTS (local).

    • If you do not specifically need Vietnamese output, change the "Target Language" in the main interface to one of the supported languages listed in the error (e.g., English, Chinese).

Please refer to the relevant documentation:

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