I found a way to convert a bunch of wav files to mp3 on Windows. Since it took me a while to find this supposedly simple thing, I though I’d share, and also ask if anybody knows how to do the same on a mac.
First, download the Windows version of LAME. You might already have it if you are using Audacity with mp3 files. The LAME folder has a dll file that Audacity uses, but also an exe file, which gives you a command-line interface.
From the command prompt, go to the LAME directory, and try something like:
FOR %X IN (sounds\\*.wav) DO lame %X
Where “sounds” is the path to the directory that has your sound files in it.
What is this good for? If you want to run a web-based questionnaire with sound files, you will find that browsers treat sound files poorly and inconsistently. The best way I know to improve the situation is to use Sound Manager 2, which puts your files inside a little flash object – but it requires your files to be in mp3 format.