sndpeek is a very nice cross-platform real-time sound analysis and visualization utility. Unfortunately the latest version (1.3 as of this writing) is not available from official Ubuntu repositories, so I could not install it quickly on my Ubuntu GNU/Linux 11.04 running laptop for my sound processing experiments. And compiling it from the source turned out to be rather tricky. Thus, for all the poor souls struggling out there, here’s how I solved it:
- According to this e-mail message you should put #include <cstdlib> into marsyas/LPC.cpp
- According to this e-mail you should put #include <cstdio> to the beginning of RtAudio.cpp.
- You should not forget to use the recommended libsndfile. And as stated it in its FAQ, once you downloaded, extracted, and did the usual
./configure; make; make install, you should
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfigon the command line.
- In my case I also had to install a couple of missing libraries, so just in case:
sudo aptitude install libxmu-dev libglut3-dev libxi-dev
After the steps above you can
make linux-alsa (or
linux-jack, depending on your system’s sound configuration). If you’re lucky enough you’ll have your sndpeek executable in the same directory. Run it by typing
./sndpeek, turn on the radio and watch the beautiful visualizations as well as important parameters as they are updated in real-time:
As a finishing touch, here are a few cool things you can do using sndpeek:
- Identify speakers with sndpeek
- Speaker identification with sndpeek (YouTube video)
- Whistle while you work to run commands on your computer