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.