Converting .wav files for use with Pocketsphinx

When using Pocketsphinx, you are required to have your audio data in a 16kHz (or 8kHz, depending on the training data) 16bit Mono (single channel) Little-Endian file. One way to do this is to export each file with Audacity but this is tiresome. However, Audacity is good for removing noise from a list of files using chains.

Once we have done that we can use SoX to take care of the rest. Here is a quick bash script I wrote which will do just that.

Bash Script