【文件属性】:
文件名称:改进的MFCC算法
文件大小:5KB
文件格式:ZIP
更新时间:2015-05-23 10:28:28
mfcc kmfcc 改进 MFCC提取 C++
#include
#include"krfft.h"
#ifndef _KMFCC_KDF_2006_FEB_08_
#define _KMFCC_KDF_2006_FEB_08_
class KMFCC
{
KRFFT rfft; // 快速福立叶变换
float * win;
float * mel;
float * real;
float * imag;
float * lift;
int * beg; // 滤波器开始点
int * end; // 滤波器结束点
std::vector< std::vector > bank; // 滤波器组
private:
int m_nCep;
int m_nFFT;
int m_nWin;
int m_nHop;
int m_nChan;
int m_nLift;
int m_nSamRate;
public:
void MelBank2Mfcc( float * MelBank, float * mfcc );
void Wav2MelBank( short * wav, float * MelBank );
void Delta( float * x , float * dx, int nSubDim, int nFrame, int nTotalDim );
void Wav2Mfcc( short * wav , float * mfcc );
void CreateMFCC(int nSamRate, int nCep=13, int nWin=1024, int nHop=512, int nChan=35, int nLift=35);
KMFCC();
virtual ~KMFCC();
protected:
void DCT( float * in, float * out, int nChan, int nCep);
float Frq2Mel( float frq );
float Mel2Frq( float mel );
void CreatBank(int nFFT, int nChan,int nSamRate);
};
#endif //_KMFCC_KDF_2006_FEB_08_
【文件预览】:
改进的KMFCC
----KFE.h(956B)
----KFE.cpp(2KB)
----KRFFT.h(130B)
----KMFCC.cpp(4KB)
----KMFCC.h(1KB)
----KRFFT.cpp(4KB)