浊音经验阈值和条件
1.voice unvoice 归一化自相关函数
config.cutOffFreq = 900;
[LowPass] = LowPassFilter(WaveIn, fs, config.cutOffFreq);
cc = CenterClipping(x, 0.3);
AutoCorr = xcorr(cc, MaxLag, 'coeff'); % normalized ACF (AutoCorrelation Function)
[MaxValue, MaxIndex] = max(AutoCorr(MinLag : MaxLag))
[MinValue, MinIndex] = min(AutoCorr(1 : MaxIndex));
MeanValue = mean(AutoCorr);
if MaxValue > 0.35 && MinValue < 0 && IsPeak(MaxIndex, MinLag, MaxLag, AutoCorr)
pitch = fs / (MaxIndex);
else pitch = 0;
end