From 867866f131b0b6c76c54272791e7f7dea01db990 Mon Sep 17 00:00:00 2001 From: historia Date: Tue, 25 Aug 2026 16:40:30 -0400 Subject: feat: better tui menu option gating for models that support custom voices (qwen) and models that do not support instructions --- app/backends/qwen.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/backends') 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: -- cgit v1.2.3