Spectral Analysis

sox file.flac -n spectrogram

man sox More information under "Supported Effects" > "spectrogram [options]".

More info