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

2 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Audio Processing Algorithm Design 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by