any one help me how to write audio file in 2009???

1 view (last 30 days)
Dhines
Dhines on 29 Feb 2016
Commented: Dhines on 29 Feb 2016
am using... this command a=audiorecorder(8000,8,1); record(a,5); play(a); wavwrite(8,'a.wav');...
here my prob starts.. when i run first two lines in command window it works.. but when i completely run it shows error .. cant write file while recording process.. but i want to the same to make matlab R2009b.. any one.. give a slight modification....thanks
  2 Comments
Steven Lord
Steven Lord on 29 Feb 2016
Show the EXACT and FULL text of the error message, not a paraphrased version of that message.
Dhines
Dhines on 29 Feb 2016
sir my program..
a=audiorecorder(8000,8,1);
record(a,5);
b=getaudiodata(a);
plot(b);
play(a);
wavwrite(8,8000,'a.wav');
cannot retrieve audio data while recording is in progress.

Sign in to comment.

Answers (0)

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!