It might be possible to do something in Audacity. Audacity can record audio from an input source (mic, line-in) and display spectrograms. Although I've never tried to record while in spectrogram view, I don't see why it wouldn't work.
The big issue is how inadequate Audacity's spectrograms are when compared to Sonic Viisualiser's. You'll have to get used to that.