SoX is "the Swiss Army knife of sound processing programs". It's great for converting between different audio file formats and it can also do some basic (and some not so basic) audio processing. And behold, it can also create spectrograms, it's quite simple:
sox myfile.wav -n spectrogram
TTS (Text-To-Spectrogram): https://github.com/kylophone/ascii-audio
Live text-mode spectrogram: https://github.com/spatialaudio/python-sounddevice/blob/master/examples/spectrogram.py
https://gist.github.com/ganwell/3772157
http://www.swharden.com/blog/2013-05-09-realtime-fft-audio-visualization-with-python/
http://stft.readthedocs.org/, https://github.com/audiolabs/stft
http://www.frank-zalkow.de/en/code-snippets/create-audio-spectrograms-with-python.html?i=1
http://mcld.co.uk/blog/2017/on-the-validity-of-looking-at-spectrograms.html