From e77bdf66f9205030c3e9820f05eb24e63424e49d Mon Sep 17 00:00:00 2001 From: Mike Seese Date: Mon, 5 Jan 2026 11:13:48 -0800 Subject: [PATCH] add can_generate_metrics functions --- src/pipecat/services/hathora/stt.py | 8 ++++++++ src/pipecat/services/hathora/tts.py | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/pipecat/services/hathora/stt.py b/src/pipecat/services/hathora/stt.py index a0829b455..d36923ce4 100644 --- a/src/pipecat/services/hathora/stt.py +++ b/src/pipecat/services/hathora/stt.py @@ -72,6 +72,14 @@ class HathoraSTTService(SegmentedSTTService): self._api_key = api_key or os.getenv("HATHORA_API_KEY") self._params = params or HathoraSTTService.InputParams() + def can_generate_metrics(self) -> bool: + """Check if this service can generate processing metrics. + + Returns: + True + """ + return True + @traced_stt async def _handle_transcription( self, transcript: str, is_final: bool, language: Optional[Language] = None diff --git a/src/pipecat/services/hathora/tts.py b/src/pipecat/services/hathora/tts.py index f1d35c9fb..44bf271a0 100644 --- a/src/pipecat/services/hathora/tts.py +++ b/src/pipecat/services/hathora/tts.py @@ -95,6 +95,14 @@ class HathoraTTSService(TTSService): self.set_voice(voice_id) + def can_generate_metrics(self) -> bool: + """Check if this service can generate processing metrics. + + Returns: + True + """ + return True + @traced_tts async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]: """Run text-to-speech synthesis on the provided text.