feat: add QwenTTSService for MLX Qwen3-TTS 1.7B integration

This commit is contained in:
Adolfo Reyna
2026-08-13 22:39:56 -04:00
parent 70da5d857a
commit c95d738f88
4 changed files with 166 additions and 1 deletions
+12
View File
@@ -392,6 +392,18 @@ def build_tts(args: argparse.Namespace, voice_manager=None):
voice_manager.set_tts_processor(tts)
return tts
if "qwen" in voice or voice == "qwen_jv":
from qwen_tts_service import QwenTTSService
logger.info(f"Text to speech: MLX Qwen3-TTS (Voice Clone: {voice})")
tts = QwenTTSService(
voice=voice,
sample_rate=TTS_SAMPLE_RATE,
text_filters=[SpokenTextFilter(voice_manager=voice_manager)],
)
if voice_manager:
voice_manager.set_tts_processor(tts)
return tts
logger.info(f"Text to speech: Kokoro {voice}")
tts = KokoroTTSService(
settings=KokoroTTSService.Settings(voice=voice, language=Language.EN),