diff options
| author | historia <historiavg@proton.me> | 2026-08-25 16:40:30 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-25 16:40:30 -0400 |
| commit | 867866f131b0b6c76c54272791e7f7dea01db990 (patch) | |
| tree | b57ecdd66eeaf7ad73742d2f2bbe15d3a5498fa3 /app/backends/qwen.py | |
| parent | fca3431721a55277f139efc83df2438207917448 (diff) | |
| download | tts-audiobook-generator-867866f131b0b6c76c54272791e7f7dea01db990.tar.gz | |
feat: better tui menu option gating for models that support custom voices (qwen) and models that do not support instructions
Diffstat (limited to 'app/backends/qwen.py')
| -rw-r--r-- | app/backends/qwen.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/backends/qwen.py b/app/backends/qwen.py index 7fba7e0..be7ebfe 100644 --- a/app/backends/qwen.py +++ b/app/backends/qwen.py @@ -30,6 +30,7 @@ from backends import ( servers, ) from converter import config +from converter.tts import QWEN3_TTS_SPEAKERS from ui import taskview, tui QWEN_PIP_PKG = "qwen-tts" @@ -38,9 +39,10 @@ QWEN_BASE_MODEL = "Qwen/Qwen3-TTS-12Hz-1.7B-Base" DEFAULT_CUSTOM_PORT = 7860 DEFAULT_CLONE_PORT = 7861 -# Built-in CustomVoice speakers (see app/converter/config.py SPEAKER). -QWEN_SPEAKERS = ("Vivian", "Serena", "Uncle_Fu", "Dylan", "Eric", "Ryan", - "Aiden", "Ono_Anna", "Sohee") +# Built-in CustomVoice speakers (see app/converter/config.py SPEAKER). The +# canonical list lives in converter.tts (shared with the audiocpp backend's +# Convert-form Speaker picker). +QWEN_SPEAKERS = QWEN3_TTS_SPEAKERS def _is_installed() -> bool: |
