WAV to XES Conversion

If you have a WAV file that you want to store in the SDRAM, you need to convert the raw audio to an 8KHz 16 bit, signed two's complement samples and store the audio samples in an XES file. You can do this in two steps:

  1. Download the MATLAB function makeraw.m and open up MATLAB. (MATLAB is installed on all the Packard computers, and probably on many other computers on campus as well.) makeraw has two arguments, the name of the WAV file you want to convert and the number of 16-bit samples you want to store in the SDRAM. So if your WAV file is mysound.wav and you want to store 65536 samples (just as in Lab 6), you run makeraw like this:

makeraw('mysound.wav',65536);

The function will output a file in the working directory called mysound.raw that is 65536 samples long.

  1. Convert the raw audio file to the XES format with the bin2xess program.

Last modified: Thu May 27 12:48:42 PST 2002