Obtain a spectrogram from the signal.