public class MFCC extends FeatureExtractor<float[],float[]>
MelSpectrum
,
and must be set as a listener to a MelSpectrum
, not a pure audio stream,
in order to work properly.featureDescriptions, features, name, numFeatures
Constructor and Description |
---|
MFCC(int numCoeffs)
Instantiates a new MFCC.
|
Modifier and Type | Method and Description |
---|---|
void |
process(TimeStamp startTime,
TimeStamp endTime,
float[] melSpectrum)
Process some data of type P (specified by the class def).
|
void |
setNumberOfFeatures(int num)
Sets the number of features.
|
addListener, forward, getFeatureDescriptions, getFeatures, getName, getNumberOfFeatures, removeListener, setName
getKillListener, isDeleted, isPaused, kill, message, messageReceived, pause, setKillListener, start, toString
public MFCC(int numCoeffs)
numCoeffs
- the number of coefficients to generate.public void setNumberOfFeatures(int num)
FeatureExtractor
setNumberOfFeatures
in class FeatureExtractor<float[],float[]>
num
- the new number of features.public void process(TimeStamp startTime, TimeStamp endTime, float[] melSpectrum)
FeatureExtractor
process
in class FeatureExtractor<float[],float[]>
melSpectrum
- the data.