add spectrogram with serialization