mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Merge pull request #221 from alibaba-damo-academy/dev_zly
update vad_inference_online.py
This commit is contained in:
commit
08d6f5cc1c
@ -96,7 +96,7 @@ class Speech2VadSegmentOnline(Speech2VadSegment):
|
||||
}
|
||||
# a. To device
|
||||
batch = to_device(batch, device=self.device)
|
||||
segments, in_cache = self.vad_model(**batch)
|
||||
segments, in_cache = self.vad_model.forward_online(**batch)
|
||||
# in_cache.update(batch['in_cache'])
|
||||
# in_cache = {key: value for key, value in batch['in_cache'].items()}
|
||||
return fbanks, segments, in_cache
|
||||
|
||||
Loading…
Reference in New Issue
Block a user