fix vad max_end_sil bug

This commit is contained in:
hnluo 2023-09-06 19:13:43 +08:00 committed by GitHub
parent b87273a856
commit 602d3b5e2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,