Skip to content

Instantly share code, notes, and snippets.

@klaseskilson
Created September 10, 2014 09:09
Show Gist options
  • Save klaseskilson/6aa917935ce551af16fd to your computer and use it in GitHub Desktop.
Save klaseskilson/6aa917935ce551af16fd to your computer and use it in GitHub Desktop.
Semi real time audio recording in MatLab
for n = 1:50;
tempAudioObj = audiorecorder;
disp('Recording part');
disp(n)
recordblocking(tempAudioObj, 0.05);
disp('Done with part');
disp(n)
tempAudioData = getaudiodata(tempAudioObj);
plot(tempAudioData);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment