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.

Zero_Crossings(y)
%Computes the number of Zero_Crossings of signal y
function [zc] = Zero_Crossings(y)

zc = 0;
for i=2:length(y),
   if y(i)*y(i-1) < 0,
      zc = zc+1;
   end,
end,

   

Contact us