CoolFace
Apppublic

SolusOps/Study-with-ChampAI

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
speech_agent.py11 linesDownload Raw Back to agents
1from __future__ import annotations2from services.model_router import ModelRouter3 4class SpeechAgent:5    def __init__(self, router: ModelRouter): self._router = router6 7    def transcribe(self, audio_bytes: bytes) -> str:8        if not audio_bytes:9            return ""10        return self._router.transcribe(audio_bytes).strip()11