Linux Commands Examples

A great documentation place for Linux commands


generate a spectrogram from an input sound file


sndfile-spectrogram [options] <sound file> <img width> <img height> <png name>

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


sndfile-spectrogram reads a single channel sound file and generates a spectrogram which is written to a PNG file with specified imahe height and width.

The optional parameters allow the user to specify the dynamic range of the spectrogram plot and/or to disable the darwing of borders, scales, heat map and title. Run "sndfile-spectrogram --help" for more information.

The input file is read using libsndfile (, the spectrogram is calculated with the help of libfftw and the spectrogram is rendered and written to the output file using libcairo.


This manual page was written by Erik de Castro Lopo <>.

How can this site be more helpful to YOU ?

give  feedback