added set_model to 11l service

This commit is contained in:
Jon Taylor
2024-09-02 14:19:23 +03:00
parent 7c342f7ba2
commit c85704a342

View File

@@ -43,6 +43,10 @@ class ElevenLabsTTSService(TTSService):
logger.debug(f"Switching TTS voice to: [{voice}]")
self._voice_id = voice
async def set_model(self, model: str):
logger.debug(f"Switching TTS model to: [{model}]")
self._model = model
async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]:
logger.debug(f"Generating TTS: [{text}]")