self.frequency_dimension=signal_to_spectrogram.get_default_frequency_dimension(feature)# Risky, because it is not linked to the computation. Should be computed from the spectrogram.
def__getitem__(self,index):
raiseNotImplementedError("This method should be implemented in the child class")fromNone
def__len__(self):
raiseNotImplementedError("This method should be implemented in the child class")fromNone
defget_spectrogram(self,signal):# The spectrogram is not saved in the cache because it is too large in general