Creating a real-time microphone signal visualization by dsp.AudioRecorder

4 views (last 30 days)
Hi, because I use win-64, I found system object method as one only way to record from my computer's audio device.
So, I created this system objects:
S.har = dsp.AudioRecorder('NumChannels', 1);
S.hmfw = dsp.AudioFileWriter('myspeech.wav','FileFormat','WAV');
hmfr = dsp.AudioFileReader('OutputDataType',...
'double');
and a while loop as:
tic;
while toc < 10,
step(S.hmfw, step(S.har));
d=step(hmfr);
end
release(S.har);
release(S.hmfw);
release(hmfr);
I checked the matlab help for the visualization and I found TimeScope system object for do that but I need one handle figure to attach on a GUI interface.
How can I visualize the sound from my computer's audio device in real time ? I thought the function "plot" but I don't know where use it in the script and what should be its arguments.

Answers (0)

Categories

Find more on Audio Processing Algorithm Design in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!