diff --git a/src/pipecat/services/hathora/stt.py b/src/pipecat/services/hathora/stt.py index 84f4116f3..27f1aebfb 100644 --- a/src/pipecat/services/hathora/stt.py +++ b/src/pipecat/services/hathora/stt.py @@ -101,8 +101,6 @@ class HathoraSTTService(SegmentedSTTService): ), **kwargs, ) - - self._model = model self._api_key = api_key or os.getenv("HATHORA_API_KEY") self._base_url = base_url @@ -136,7 +134,7 @@ class HathoraSTTService(SegmentedSTTService): url = f"{self._base_url}" payload = { - "model": self._model, + "model": self._settings.model, } if self._settings.language is not None: diff --git a/src/pipecat/services/hathora/tts.py b/src/pipecat/services/hathora/tts.py index 8d6fb32cb..3fb9e747b 100644 --- a/src/pipecat/services/hathora/tts.py +++ b/src/pipecat/services/hathora/tts.py @@ -120,7 +120,6 @@ class HathoraTTSService(TTSService): ), **kwargs, ) - self._model = model self._api_key = api_key or os.getenv("HATHORA_API_KEY") self._base_url = base_url @@ -149,7 +148,7 @@ class HathoraTTSService(TTSService): url = f"{self._base_url}" - payload = {"model": self._model, "text": text} + payload = {"model": self._settings.model, "text": text} if self._settings.voice is not None: payload["voice"] = self._settings.voice