#4002 ValueError: Unsupported languages: ['Turkish']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italian',

31.190* Posted at: 1 hour ago 👁5

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 "C:\Users\mustafamert\Desktop\pvtrans\_internal\qwen_tts\inference\qwen3_tts_model.py", line 563, in generate_voice_clone

self._validate_languages(languages)

File "C:\Users\mustafamert\Desktop\pvtrans\_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: ['Turkish']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish']

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 86, in run
File "videotrans\task\trans_create.py", line 715, in dubbing
File "videotrans\task\trans_create.py", line 993, in _tts
File "videotrans\tts\__init__.py", line 380, 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 "C:\Users\mustafamert\Desktop\pvtrans\_internal\qwen_tts\inference\qwen3_tts_model.py", line 563, in generate_voice_clone

self._validate_languages(languages)

File "C:\Users\mustafamert\Desktop\pvtrans\_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: ['Turkish']. 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:C:/Users/mustafamert/Desktop/pvtrans

1 Replies

The error occurs because the Qwen-TTS (local) model you are using for voice cloning does not support the target language 'Turkish'. The model only supports a limited set of languages.

Solution:

  1. Change the TTS (Text-to-Speech) channel: Do not use the Qwen-TTS (local) channel for this task. Switch to a TTS channel that supports Turkish.
  2. Recommended TTS channel for Turkish: Use Edge-TTS (free). It supports all languages, including Turkish.

    • In the main interface, under the "Dubbing Channel" section, select Edge-TTS (free) from the dropdown list.
    • Then, select Turkish as the target language and choose a suitable voice role for Turkish.
  3. Alternative for voice cloning: If you specifically need to clone a voice and the source audio is in Turkish, you must use a different voice cloning TTS service that supports Turkish. Options like F5-TTS, GPT-SoVITS, or CosyVoice may support it, but you must verify their language support documentation first. Edge-TTS does not support voice cloning.

Steps to change the TTS channel:

  1. In the pyVideoTrans main window, locate the "Dubbing Channel" row.
  2. Click the dropdown menu and select Edge-TTS (free).
  3. Ensure the "Target Language" is set to Turkish.
  4. Select a "Dubbing Role" for Turkish from the new dropdown that appears.
  5. You can click "Preview Dubbing" to test the voice.
  6. Restart your translation task. Make sure to check "Clear generated files" if you are reprocessing the same video to avoid using cached, failed results.

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