audiowrite.m needs a long time to save
5 ビュー (過去 30 日間)
古いコメントを表示
Hi!
I think this is a bug report but probably for Windows10 and a dirty fix.
When I try to write a lot of *.wav in short succession, at one point audiowrite needs a long time to save the files.
I narrowed the error down to the subfunction 'filepath.Writeable' in audiowrite.m . So if you desperate (like me) you can comment out the line
% if ~filepath.Writeable
% error(message('MATLAB:audiovideo:audiowrite:fileNotWritable', filename));
% end
(Matlab 2020) and hope for the best.
Greetings,
Ewald
3 件のコメント
Gaurav Garg
2021 年 1 月 28 日
Hi Ewald,
There is a question I have:
for i=1:100
....
signalfolder=strcat('C:\Users\....);
mkdir(signalfolder);
.....
end
What is the need to make directory 'C:\Users\...'? Can't you directly write audio to the needed file, which I think is 'RandSignal.wav' in your case?
回答 (1 件)
Fabián Aguirre Martín
約20時間 前
Hi Ewald,
Don't know whether I ran into the same issue because of the same reason or not, but in my case the folder in which I was trying to write was read-only. Just edit windows properties in that folder and remove "read-only".
Hope it helps! ;)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!