feat: runtime

This commit is contained in:
Dan Chen
2024-03-21 15:13:32 +08:00
parent e914aeee32
commit 49659dcc13
6 changed files with 339 additions and 4 deletions

View File

@ -15,7 +15,7 @@ class ASR(Blackbox):
self.paraformer = RapidParaformer(config)
super().__init__(config)
async def processing(self, data: any):
async def processing(self, data: bytes):
results = self.paraformer([BytesIO(data)])
if len(results) == 0:
return None