Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %Record your voice for 3 seconds
- recObj= audiorecorder(44100,16,1);
- disp('Start speaking.')
- recordblocking(recObj,3);
- disp('End of Recording.');
- %Play back the recording.
- play(recObj);
- %Store data in double-precision array.
- myRecording = getaudiodata(recObj);
- %Plot the waveform.
- plot(myRecording);
- audiowrite('filename',myRecording,44100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement