If you need to do this programmatically, you will need a parser for wav files. A general algorithm would be
A) open the file b) find the fmt chunk c) parse to calculate X = bytes per sample * samples per second. d) find the data chunk e) remove the first X bytes f) adjust the size of the data chunk g) adjust the size of the initial RIFF chunk. h) write the new file.
source share