Thursday, March 22, 2012

Matlab code to get a audio in to a vector

recObj = audiorecorder;
disp('Start speaking.')
recordblocking(recObj, 5);
disp('End of Recording.');
play(recObj);
myRecording = getaudiodata(recObj);
plot(myRecording);

//simply just copy to the Command window

No comments:

Post a Comment