mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix vad max_end_sil bug
This commit is contained in:
parent
b87273a856
commit
602d3b5e2e
@ -162,6 +162,8 @@ class Speech2VadSegmentOnline(Speech2VadSegment):
|
||||
feats = to_device(feats, device=self.device)
|
||||
feats_len = feats_len.int()
|
||||
waveforms = self.frontend.get_waveforms()
|
||||
if max_end_sil == 800 and self.vad_infer_args.vad_post_conf["max_end_silence_time"] != 800:
|
||||
max_end_sil = self.vad_infer_args.vad_post_conf["max_end_silence_time"]
|
||||
|
||||
batch = {
|
||||
"feats": feats,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user