フィルターのクリア

Audioread in loop faster way

4 ビュー (過去 30 日間)
Manolis Michailidis
Manolis Michailidis 2015 年 8 月 19 日
編集済み: Manolis Michailidis 2015 年 8 月 24 日
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.

回答 (1 件)

Dinesh Iyer
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.
  1 件のコメント
Manolis Michailidis
Manolis Michailidis 2015 年 8 月 24 日
編集済み: Manolis Michailidis 2015 年 8 月 24 日
Hello, well i tested the time for reading 5 audios and with for loop the time is almost the half as with the parfor. With the parallel computing maybe there is any other function that you were refenring? , but with parfor it's not what i was expecting. Anyway thank's a lot it's always pleasure to learn new stuff in matlab. Note the time was calculated with tic/toc.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by