add can_generate_metrics functions

This commit is contained in:
Mike Seese
2026-01-05 11:13:48 -08:00
parent 1b3b67779c
commit e77bdf66f9
2 changed files with 16 additions and 0 deletions

View File

@@ -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

View File

@@ -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.