From 45f0522f19d2661114cc0afbdc66a0b344ae3325 Mon Sep 17 00:00:00 2001 From: dujing Date: Wed, 28 Jun 2023 13:53:12 +0800 Subject: [PATCH] fix timestamp when subsampling!=1. --- wekws/bin/stream_kws_ctc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wekws/bin/stream_kws_ctc.py b/wekws/bin/stream_kws_ctc.py index f609b72..ad5d626 100644 --- a/wekws/bin/stream_kws_ctc.py +++ b/wekws/bin/stream_kws_ctc.py @@ -203,7 +203,7 @@ class KeyWordSpotter(torch.nn.Module): self.frame_length = dataset_conf['feature_extraction_conf']['frame_length'] # in ms self.frame_shift = dataset_conf['feature_extraction_conf']['frame_shift'] # in ms self.downsampling = dataset_conf.get('frame_skip', 1) - self.resolution = self.frame_shift / 1000 * self.downsampling # in second + self.resolution = self.frame_shift / 1000 # in second # fsmn splice operation self.context_expansion = dataset_conf.get('context_expansion', False) self.left_context = 0