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

83.11* Posted at: 5 days ago 👁35

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

return func(*args, **kwargs)

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

self._validate_languages(languages)

File "D:\win-pyvideotrans-v3.97\_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: ['Polish']. Supported: ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish']


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:en
root_dir:D:/win-pyvideotrans-v3.97

1 Replies

The error is caused by using the Qwen-TTS local channel to generate voice for a language (Polish) that is not currently supported by the model.

Solution:

  1. Change the TTS channel: Do not use the local "Qwen-TTS" channel for Polish. Switch to a TTS channel that supports Polish, such as:

    • Edge-TTS (Free, online, supports Polish)
    • OpenAI TTS (Paid API, supports Polish)
    • Azure TTS (Paid API, supports Polish)
    • F5-TTS (Local, supports multi-language cloning, but you must ensure the reference audio is in a supported language and the target language is set correctly in its API).
  2. If you must use Qwen-TTS: The current local Qwen-TTS model only supports the languages listed in the error message: ['auto', 'chinese', 'english', 'french', 'german', 'italian', 'japanese', 'korean', 'portuguese', 'russian', 'spanish']. You cannot use it for Polish.

Steps to change the TTS channel in pyVideoTrans:

  1. In the main interface, go to the "Dubbing Channel" section.
  2. Select a different channel from the dropdown list (e.g., "Edge-TTS").
  3. Configure the selected channel if necessary (Edge-TTS requires no configuration).
  4. Re-run the dubbing task.

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