def _with_features(self, cut: Cut, frame_shift: Seconds) -> Cut: d = TemporaryDirectory() self.dirs.append(d) extractor = Fbank(config=FbankConfig(frame_shift=frame_shift)) with LilcomFilesWriter(d.name) as storage: return cut.compute_and_store_features(extractor, storage=storage)
def _with_features(self, cut: Cut) -> Cut: d = TemporaryDirectory() self.dirs.append(d) with LilcomFilesWriter(d.name) as storage: return cut.compute_and_store_features(Fbank(), storage=storage)