From 9557705b5382bbb11dc615ce34809cd7c370588a Mon Sep 17 00:00:00 2001 From: Michael Louis Date: Fri, 25 Apr 2025 14:40:19 -0400 Subject: [PATCH] Changed warmup to internal function --- src/pipecat/services/ultravox/stt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/services/ultravox/stt.py b/src/pipecat/services/ultravox/stt.py index 7b087d9be..6a62cd2cd 100644 --- a/src/pipecat/services/ultravox/stt.py +++ b/src/pipecat/services/ultravox/stt.py @@ -222,7 +222,7 @@ class UltravoxSTTService(AIService): logger.info(f"Initialized UltravoxSTTService with model: {model_name}") - async def warm_up_model(self): + async def _warm_up_model(self): """Warm up the model with silent audio to improve first inference performance. This method generates a short segment of silent audio and runs it through @@ -289,7 +289,7 @@ class UltravoxSTTService(AIService): await super().start(frame) self._connection_active = True - await self.warm_up_model() + await self._warm_up_model() logger.info("UltravoxSTTService started")