Spaces:
Running
Running
File size: 332 Bytes
dc124db | 1 2 3 4 5 6 7 8 9 10 11 | 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()
|