public class MFCC extends JAudioFeatureExtractor
featureExtractor
Constructor and Description |
---|
MFCC()
Default constructor
|
MFCC(AudioStream as)
Constructor for chaining to a stream
|
Modifier and Type | Method and Description |
---|---|
double[][] |
calculateMFCC(SampleBuffer sb)
Calculate the MFCCs for the given sample buffer.
|
double[][] |
getExtraInputs(double[] samples,
double sampleRate)
Returns the extra inputs required by a specific feature extractor
|
double[][] |
getLastCalculatedFeatureWithoutFirst()
Returns the MFCCs with the first coefficient set to zero.
|
extractFeature, getLastCalculatedFeature, process, process, process, process, setLastCalculatedFeature
getLength, getUnderlyingStream, nextSampleChunk, process, processingComplete, reset, setUnderlyingStream
iterator, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MFCC()
public MFCC(AudioStream as)
as
- The audio streampublic double[][] calculateMFCC(SampleBuffer sb)
sb
- The sample bufferpublic double[][] getExtraInputs(double[] samples, double sampleRate)
getExtraInputs
in class JAudioFeatureExtractor
samples
- The samples for a single channelsampleRate
- The sample rate of the dataJAudioFeatureExtractor.getExtraInputs(double[], double)
public double[][] getLastCalculatedFeatureWithoutFirst()