This code is a simple implementation of , . The function trmszc implements the main algorithm. The input of the method is a .wav file.
Instructions about the parameters of trmszc and how to run it, are given as comments in the start of trmszc.m.
It yields a sound segmentation and classification with 20 msec accuracy.
Classes: Music, Voice(Speech), Silence
You can use this software for non commercial purposes. Please, cite the articles , .
If you want to use the software for commercial purpose you have to contact with the authors of .
. C. Panagiotakis and G. Tziritas, A speech/music discriminator based on
RMS and zero-crossings, IEEE Transactions on Multimedia, Vol. 7, No. 1, Feb. 2005.
 C. Panagiotakis and G. Tziritas, A Speech/Music Discriminator using
RMS and Zero-crossings, European Signal Processing Conference, 2002.
This class (voice with music) is not supported by the proposed classification method. It could be faced as a future work of the proposed method including extra features.
It works quite well! But how can I set it in a way that when there is voice with some music background the result will be "voice" and not "music"?
Thanks for the suggestion, the code has been updated now including only the second for
I was going through your source code and confused with the following scope:
we can see that P indeed updated by (1-omiot2(i-1)), but why make it updated with (1-omiot2(i-1))*(1-omiot1(i-1)+1-omiot1(i))*(1-omiot2(i-1)) just above it which is not necessary and expends the computation ?
Hello，my dear friend.Now i can run it and get two
picture as result,but i can not understand many detail.Can you help me?My QQ is 2268326043,if you have time,contracting me! When you contract me ,remarking "matlab",thank you!!
zc = 0;
if y(i)*y(i-1) <= 0,
zc = zc+1;
I have a question.Can not these code run?
I have tried many times,but i can not get right result.Can you help me ?
It computes the number of number of times that the sign of the given signal y changes (from positive to negative or from negative to positive).
You can find more details in
. C. Panagiotakis and G. Tziritas, A speech/music discriminator based on RMS and zero-crossings, IEEE Transactions on Multimedia, Vol. 7, No. 1, Feb. 2005.
what does the following code mean.?
%Computes the number of Zero_Crossings of signal y
function [zc] = Zero_Crossings(y)
zc = 0;
if y(i)*y(i-1) < 0,
zc = zc+1;
Update of the Screenshot and the figures of the function trmszc
Update the Description and tags and the and comments on trmszc.m.