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

 

相关文章:

  • 2021-12-24
  • 2021-05-18
  • 2021-11-08
  • 2021-06-23
  • 2021-11-13
  • 2021-04-30
  • 2021-10-23
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-10-29
  • 2021-08-08
  • 2021-11-10
相关资源
相似解决方案