add banbanmini backend
This commit is contained in:
27
talkingq-url/interfaces/asr.py
Normal file
27
talkingq-url/interfaces/asr.py
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user