MATLAB: How can i record the voice in matlab GUi

guirecord

why the method play() don't work in matlab gui what is the wrong in my code recObj = audiorecorder; s=get(handles.tt,'string'); num=str2num(s); recordblocking(recObj,num ); % Play back the recording. play(recObj); axes(handles.axes1) myRecording = getaudiodata(recObj); plot(myRecording);

Best Answer

That is described in the documentation for audiorecorder, specifically in Collect a sample of your speech with a microphone, and plot the signal data
Related Question