Archivi categoria: Tools

Quickly generate spectrograph

Just as reminder: the sndfile-tools package in the Debian repositories contains some useful utilities to work on audio files, for example to generate a PNG image with the spectrograph from CLI.

Having a list of audio (flac) files in one folder and want to generate the spectrographs with matching names:

for f in $(ls .); do sndfile-spectrogram $f 1000 480 /tmp/${f/flac/png}; done

Here more info (man pages) on the sndfile-tools