Continuous Spectrogram from multiple wav files.

조회 수: 5(최근 30일)
Hello all,
I have been scouring the existing online help but cant seem to find exactly what I’m after. I have a folder with hundreds of 4 min wav files and want to produce a single spectrogram which contains them all. My initial thinking was to read in all wav files and somehow join them into one large file to later put into a spectrogram. Any help would be great appreciated!
Thanks,
Thomas

채택된 답변

Stijn Haenen
Stijn Haenen 2020년 5월 19일
Something like this:
data_tot=[];
>> for i=1:numel(files)
data=audioread(files(i));
data_tot=[data_tot ; data];
end
audiowrite('file.wav',data_tot,Fs);
  댓글 수: 3
Thomas Webber
Thomas Webber 2020년 5월 19일
Thats wonderful, thankyou for your help!

댓글을 달려면 로그인하십시오.

추가 답변(0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by