feat: add QwenTTSService for MLX Qwen3-TTS 1.7B integration
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user