心胸决定格局,眼界决定境界...

浊音经验阈值和条件

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

 

posted @ 2016-09-05 10:41  WELEN  阅读(316)  评论(0编辑  收藏  举报