generating audio file through m.script

hi, i need an audiofile to generate any speech for particular frequency and for particular time. can u suggest me how to generate audiofile using m-file.... ?
Thanks Deepa.R

 Accepted Answer

madhan ravi
madhan ravi on 27 Aug 2018
Edited: madhan ravi on 27 Aug 2018
Try the below code:
recorder = audiorecorder;
disp('Start speaking.')
recorder.record(100); %100 refers to the seconds
while recorder.isrecording()
pause(0.1);
plot(recorder.getaudiodata());
drawnow();
end
disp('End of Recording.');

2 Comments

what is the variable here to store the captured speech ?
how to store the speech here ?

Sign in to comment.

More Answers (0)

Categories

Find more on Code Generation and Deployment in Help Center and File Exchange

Asked:

on 27 Aug 2018

Commented:

on 28 Aug 2018

Community Treasure Hunt

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

Start Hunting!