Those dreaded chipmunks!
Monday, January 15th, 2007Since moving over to Wordpress for my main blog I’ve had the opportunity to look around and install (and in fact to write) a number of plugin modules for the site. There are hundreds of these installable utilities out there and for the most part they go in an silently just work the way they were intended to. Occasionally something really strange will happen.
I was looking for a nice simple way to allow visitors to listen to episodes of my podcast novel “The Matrix :: Repercussions” directly on the webpage without having to download the track to their computer first. I was saved (so to speak) by a neat little audio player Wordpress plugin published by 1 pixel out. Written in Macromedia flash, this plugin did exactly what it was advertised as doing, no more and no less - exactly how I like software to be. I whipped up a quick podcast promo:
and proceeded to try to listen to it with the audio player (give it a go…) [audio:http://nano.caffeinatedbliss.com/media/promo-chipmunk.mp3]
The website for the audio player was kind enough to mention the playback speed issue that turns people into chipmunks:
The Macromedia Flash player has a problem playing files that are encoded at a rate that is not a multiple of 11.025 kHz. This effect is sometimes called the “chipmunk” effect: the file is played at double speed. To avoid this, encode MP3’s at 11.025 kHz 22.050 kHz or 44.100 kHz.
Much as I love composing my podcast in Propaganda, I was unable to control the MP3 encoding to the level that they require; all it would export were more chipmunks!
I tried exporting from Propaganda as WAV and then doing the MP3 encoding using the free (and otherwise excellent) Audacity sound editing software:

And this clearly shows that the WAV file was encoded at an acceptable 44100Hz and therefore should be acceptable to the Flash audio player. BZZzzzzt Wrong. More chipmunks. I was at a loss, then I tried opening the MP3 file itself in Audacity and poking around. Both the one produced by Propaganda and the one created by Audacity looked the same:

If you’ve read this blog entry up to this point, you’re probably pretty eager to see the solution. It’s not pretty!
Chipmunks be gone!
Audacity relies on a piece of software called “lame” to do the actual MP3 encoding process. This software is a separate download from Audacity. It runs quite happily on its own from the command-line and accepts a number of configuration options. It was with great pleasure that I read in the documentation for lame that I could specify a re-sampling rate for the audio, allowing me to use one of the Macromedia Flash supported values. I opted for 22050Hz:
The resulting MP3 sounded so much better! Give it a go:
[audio:http://nano.caffeinatedbliss.com/media/promo.mp3]
So now I have a 3 step / application podcasting pipeline:
- Record raw audio in Audacity and edit the content
- Compose / mix the podcast in Propaganda and export the episode as a WAV file
- On the command-line encode the final MP3 using lame
The strange thing is this: when I started out it looked like all I would need was Propaganda, as an all-in-one podcast production application. Little did I know!





