Skip to content

Commit

Permalink
Update SpectrogramCepstral.cs
Browse files Browse the repository at this point in the history
Issue #492 Small changes to comment and method name
  • Loading branch information
towsey committed Jun 5, 2021
1 parent cbae982 commit 986f3b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ public override void Make(double[,] amplitudeM)
Log.WriteIfVerbose("\tDim after filter bank=" + m.GetLength(1) + " (Max filter bank=" + bandCount + ")");

// (iv) TAKE LOG OF THE ENERGY VALUES AFTER FILTERBANK
m = MFCCStuff.GetLogOfEnergySpectrogram(m, config.WindowPower, sampleRate, epsilon); //from spectrogram
m = MFCCStuff.GetLogEnergySpectrogram(m, config.WindowPower, sampleRate, epsilon); //from spectrogram

// (v) SQUARE THE MEL VALUES BEFORE DOING DCT
// This reduces the smaller values wrt the higher energy values. It is supposed to increase the accuracy of ASR.
// This reduces the smaller values wrt the higher energy values.
// Some mfcc references state that it is supposed to increase the accuracy of ASR.
m = MatrixTools.SquareValues(m);

// (vi) calculate cepstral coefficients
Expand Down

0 comments on commit 986f3b2

Please sign in to comment.