MATLAB: How can i calculate ZCR (Zero-Crossing Rate) threshold for a given signal.

zero crossing rate threshold

Hey Everyone..
Could someone please tell me how to calcualte the ZCR threshold for a given signal. I have been searching on the internet for while, and i find some methods to calculate ZCRT. But the problem is, that i cant really understand those different methods. The reason why i need to calculate the threshold for ZCR, is to decide when there is speech(voiced) and no speech(unvoiced)
I will be thankfull for some answers..
Thanks 🙂

Best Answer

ZCR=mean(abs(diff(sign(Signal)));