Audio
|
NOTE: The method described here assumes that MATLAB is available to make the conversion. If MATLAB is not available, then use whatever software you can find that can read a .WAV file and write the audio samples to a text file as one sample per line. Step 1: Read the .WAV audio fileIn MATLAB, do the following: [x fs bits] = wavread('file.wav');
Step 2: Create the .CSV fileIn MATLAB, do: save file.csv -ascii x Step 3: Calculate the 33120A frequency settingAssuming you wish to preserve the sampling frequency of the original .WAV audio file, calculate the 33120A frequency setting as follows: fs/length(x) Example files
|
Department
of Electrical and Computer Engineering Page last updated 06/05/01
|