I want to write a simple program that takes a moderately sized wav file (60 seconds or so) and cuts it into 1 second length segments of the same format (1.wav,2.wav,… etc) … Is there a simple C++ or java library that could do this? I don’t want to have to manipulate header information
Share
Look at libsndfile. Also see this other post.
You will want to:
sample_ratesamples which will represent 1 second of audio and package these buffers into a new WAV file (with headers) until you reachEOFof the original.HTH