Real Time Voice Activity Detection by Spectral Energy by MATLAB

Tutorial #4

Jarvus
Jarvus
Apr 8, 2019 · 1 min read

Download Source Code

Description

  1. Plot signal wave in time or frequency domain
  2. Choose x-axis as time or samples
  3. Remove spectral energy under a value when show the spectrogram

Function

sys = (fs, screen, th)
Sampling frequency (Hz). Default is 16k.
Screen width to show signal (sec). Default is 2 sec.
Threshold energy for removal. Default is 100.

Example

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

sys = realTime_YW(16000, 2, 100);

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