mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Update asr_inference_paraformer_streaming.py
This commit is contained in:
parent
9ff5b683db
commit
493dda8f98
@ -206,6 +206,8 @@ class Speech2Text:
|
||||
cache_en["tail_chunk"] = True
|
||||
feats = cache_en["feats"]
|
||||
feats_len = torch.tensor([feats.shape[1]])
|
||||
results = self.infer(feats, feats_len, cache)
|
||||
return results
|
||||
else:
|
||||
if self.frontend is not None:
|
||||
feats, feats_len = self.frontend.forward(speech, speech_lengths, cache_en["is_final"])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user