sox input.wav -n spectrogram -o spectrogram.png

Category: Media & Conversion

sox input.wav -n spectrogram -o spectrogram.png

Render a spectrogram image of the audio

Renders a spectrogram, a graph of frequency over time, as a PNG. -o names the output file. Great for spotting clipping, noise, or silence visually. Requires sox built with spectrogram support, which needs PNG libraries.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.