Real time plot audio wave by speaking to the microphone by MATLAB

Tutorial #2

Jarvus
Jarvus
Mar 31 · 1 min read

Download Source Code

Description

  1. Use our microphone to record speech
  2. Real time plot the signal in the figure

Function

sys = realTime_YW(fs, screen)
  • Required Input Parameters
fs       Sampling frequency (Hz). Default is 16k.
screen Screen width to show signal (sec). Default is 5 sec.

Example

Start the system by sample rate 16k and show 5 seconds signal.

sys = realTime_YW(16000,5);

Stop the system.

stop(sys.clock);
stop(sys.recorder);

Get the record speech, plot and play it.

s = getaudiodata(sys.recorder);
figure;
plot(s);
sound(s,16000);

👉 Tutorial Outline 👈

Audio Processing by MATLAB

Simple technology for beginners

Jarvus

Written by

Jarvus

A diverse software developer, focus on Audio Processing, Deep learning and Blockchain.

Audio Processing by MATLAB

Simple technology for beginners

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade