from abc import ABC, abstractmethod class ASR(ABC): @abstractmethod async def connect(self): pass @abstractmethod async def send_audio(self, audio_data: bytes): pass @abstractmethod async def send_end(self): pass @abstractmethod async def receive_results(self): pass @abstractmethod async def close(self): pass