audiowrite.m needs a long time to save

3 views (last 30 days)
ewald strasser
ewald strasser on 22 Jan 2021
Commented: ewald strasser on 28 Jan 2021
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 Comments
Gaurav Garg
Gaurav Garg on 28 Jan 2021
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?
ewald strasser
ewald strasser on 28 Jan 2021
The reason is that each signal needs its own folder. I have no choice here.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!