diff --git a/slicer2.py b/slicer2.py index 61c9daf..e150e82 100644 --- a/slicer2.py +++ b/slicer2.py @@ -74,7 +74,7 @@ def slice(self, waveform): samples = waveform.mean(axis=0) else: samples = waveform - if samples.shape[0] <= self.min_length: + if (samples.shape[0] + self.hop_size - 1) // self.hop_size <= self.min_length: return [waveform] rms_list = get_rms(y=samples, frame_length=self.win_size, hop_length=self.hop_size).squeeze(0) sil_tags = []