Study-with-ChampAI / agents /speech_agent.py
SolusOps's picture
feat: agents package
dc124db verified
Raw
History Blame Contribute Delete
332 Bytes
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()