Audioread in loop faster way
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello, i need to read multiply audio files so i wrote
for idx=1:Num
filename =['my_dir\data\a',int2str(idx),'.wav'];
x{:,idx}=audioread(filename);
end
,but it's very time consuming (let's say about 200 wav files) , so maybe there is any other faster way to do this? thanks in advance.
댓글 수: 0
답변 (1개)
Dinesh Iyer
2015년 8월 24일
One thing you can try is use Parallel Computing Toolbox and read data from each file on a different MATLAB worker. That is the only way I can think of to speed up the operation.
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!