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

6 visualizaciones (últimos 30 días)
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.

Respuestas (0)

Categorías

Más información sobre Measurements and Spatial Audio en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by