Skip to main content
Topic: Create waveform images from sound files (Read 22077 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Create waveform images from sound files


I have a large set of similar sound clips. To analyze and document them, I'd like to somehow "convert" each clip into a visual representation of its waveform. Like convert .wav to .bmp, you get the idea. Do you have any suggestions how to achieve it? I can't do it manually because it's just too many files! 

Many thanks in advance

edit: I found this: , which looks exactly like what I want. However, it's kind of linux-ish. It's not for windows, and you have to compile it yourself, it seems. Sadly, I don't have the knowledge to do this.

Create waveform images from sound files

Reply #1
Interesting project, thanks for pointing out.

For linux users: official ubuntu package sndfile-tools (any version) does not contain  sndfile-waveform yet. I tried compiling the upstream version and hit quite a few errors. However, the original version at;a=summary works perfectly.

Compilation of course requires the devel packages but the configure nicely lists anything missing, the required dev packages are just "apt-get install ..." away.

Code: [Select]
git clone git://
cd sndfile-tools/

I really like the tool, produces great images. Just like the spectrogram generator.

Create waveform images from sound files

Reply #2
Hmm... I found:
An online solution, which unfortuantely looks like you'd have to do each track individually. Unless you're able to adapt the code.

This post seems to do it with Python, in case you have any knowledge of that...

Yeah, everything i've found so far requires some knowledge of programming. Do you have any, and if so, which language(s)?

Create waveform images from sound files

Reply #3
Or you can install ubuntu 12.04 into virtualbox and compile the sndfile tools. It is just several commands
(apt-getting the required packages plus the compilation I listed). Once the binaries are available, it takes just a simple loop in terminal to generate all the images.

Create waveform images from sound files

Reply #5
Awesome, thank you romor. I will have a look at it as soon as possible. For now, I found a solution using a waveform to PNG visualizer written in PHP, from here:

I downloaded PHP and ran the script as follows:

php.exe waveform.php infile.wav outfile.png

Create waveform images from sound files

Reply #6
Windows binary for waveform generator (accepts flac, too):

I have searched for the same, but it's hard to find good software for the task. Therefore I have developed a program (based on the work in the quote) that supports drag and drop on the programs icon + you can drop multiple files simultaneously. You can download the program here.

This worked for my task and I hope it will work for you/you allready have managed to find another way.
(And yes, I did actually register me on this site just to trying to help you.  ) Greetings from Norway!


Create waveform images from sound files

Reply #7
I've compiled the waveform and spectrogram binaries from sndfile-tools under windows for using with foobar2000.
you can get them here

SimplePortal 1.0.0 RC1 © 2008-2018