|
(self.melspectrogram_buffer, self._get_melspectrogram(list(self.raw_data_buffer)[-n_samples-160*3:])) |
mel spectrogam should padding 240 left side if window size 400 or 352 if window size 512 (onnx file of mel spectogram has kernel size 512 not 400)
self.melspectrogram_buffer = np.vstack(
(self.melspectrogram_buffer, self._get_melspectrogram(list(self.raw_data_buffer)[-n_samples-240:]))
)
and i think this should also pad with 240 or 352 depending on window size
self.raw_data_buffer: Deque = deque(maxlen=sr*10)
self.raw_data_buffer.extend([0] * 240)
openWakeWord/openwakeword/utils.py
Line 397 in 368c037
mel spectrogam should padding 240 left side if window size 400 or 352 if window size 512 (onnx file of mel spectogram has kernel size 512 not 400)
and i think this should also pad with 240 or 352 depending on window size