Spaces:
Running
Running
| from __future__ import annotations | |
| from services.model_router import ModelRouter | |
| class SpeechAgent: | |
| def __init__(self, router: ModelRouter): self._router = router | |
| def transcribe(self, audio_bytes: bytes) -> str: | |
| if not audio_bytes: | |
| return "" | |
| return self._router.transcribe(audio_bytes).strip() | |