Code covered by the BSD License  

Highlights from
A speech/music discriminator based on RMS and zero-crossings

image thumbnail

A speech/music discriminator based on RMS and zero-crossings

by

 

05 Jun 2013 (Updated )

This code implements a method for a speech/music discriminator based on RMS and zero-crossings.

RMS(y)
%Computes the RMS of signal y
function [x] = RMS(y)

x = 0;
for i=1:length(y),
   x = x+y(i)*y(i);
end
x =sqrt(x); 

Contact us