Someone please help me? I really had a lot of trouble.
I want as soon as the recording is finished the son01.wav file will not automatically save, but rather it will be asked to save by a different name option with each recording for different people. And I want this to be repeated for all of those after that.
Fs=44100;
N=16;
channel=2;
duration=3;
recObj = audiorecorder(Fs, N, channel);
disp('Start speaking.')
recordblocking(recObj, duration);
disp('End of Recording.');
play(recObj);
y = getaudiodata(recObj);
[newfile,newpath] = uiputfile('my_new_name.wav','save file name');
audiowrite('son01.wav',y,Fs)
I added this code "[newfile, newpath] = uiputfile ('my_new_name.wav', 'save file name');" and it works separately, son.01wav is automatically saved by "audiowrite ('son01.wav', y, Fs)" command.
I don't want this to happen. Someone please help me. thank you.
4 Comments
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1129563
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1129563
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1131298
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1131298
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1131318
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1131318
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1131408
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/646033-how-to-save-wave-file-with-arbitrary-name-right-after-recording-is-finished#comment_1131408
Sign in to comment.