services: add voice and language to set_model()

This commit is contained in:
Aleix Conchillo Flaqué
2024-08-26 12:14:36 -07:00
parent d7c9679977
commit 864768635a

View File

@@ -247,7 +247,7 @@ class TTSService(AIService):
elif isinstance(frame, TTSSpeakFrame): elif isinstance(frame, TTSSpeakFrame):
await self._push_tts_frames(frame.text, False) await self._push_tts_frames(frame.text, False)
elif isinstance(frame, TTSModelUpdateFrame): elif isinstance(frame, TTSModelUpdateFrame):
await self.set_model(frame.model) await self.set_model(frame.model, frame.voice, frame.language)
elif isinstance(frame, TTSVoiceUpdateFrame): elif isinstance(frame, TTSVoiceUpdateFrame):
await self.set_voice(frame.voice) await self.set_voice(frame.voice)
elif isinstance(frame, TTSLanguageUpdateFrame): elif isinstance(frame, TTSLanguageUpdateFrame):