I have a list of .wav files each of them being a 1-minute duration. I want to chop the 1-minute wav file into 10sec intervals so that for each 1-minute recording, I would now have 6 of them with a 10sec interval each. Can someone suggest how I go about this?

The following is the code I have written.

[xbit,fs] = audioread('new_file1.wav');

   [M,N] = size(xbit);
   dt = 1/fs;
   t = dt*(0:M-1)';
   figure(2);
   plot(t,xbit);

I need to break this new_file1.wav into smaller .wav files where each of the smaller ones is of 10sec duration. The original .wav file is 60.9sec duration.

0 Answers