From 6db65f4335ca74dce7b532a20322be2efa7a6150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 2 Oct 2024 11:57:36 -0700 Subject: [PATCH] cartesia: use model_name instead of model_id --- src/pipecat/services/cartesia.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pipecat/services/cartesia.py b/src/pipecat/services/cartesia.py index c23e96df9..464c2d979 100644 --- a/src/pipecat/services/cartesia.py +++ b/src/pipecat/services/cartesia.py @@ -315,11 +315,6 @@ class CartesiaHttpTTSService(TTSService): def can_generate_metrics(self) -> bool: return True - async def set_model(self, model: str): - logger.debug(f"Switching TTS model to: [{model}]") - self._model_id = model - await super().set_model(model) - async def stop(self, frame: EndFrame): await super().stop(frame) await self._client.close() @@ -344,7 +339,7 @@ class CartesiaHttpTTSService(TTSService): voice_controls["emotion"] = self._settings["emotion"] output = await self._client.tts.sse( - model_id=self._model_id, + model_id=self._model_name, transcript=text, voice_id=self._voice_id, output_format=self._settings["output_format"],