| | |
| | | SpeechWrap speech; |
| | | FeatureQueue fqueue; |
| | | int mode; |
| | | int fft_size = 512; |
| | | int window_size = 400; |
| | | int window_shift = 160; |
| | | |
| | | float *fft_input; |
| | | fftwf_complex *fft_out; |
| | | fftwf_plan p; |
| | | |
| | | void fftw_init(); |
| | | //void fftw_init(); |
| | | void melspect(float *din, float *dout); |
| | | void global_cmvn(float *din); |
| | | |
| | |
| | | FeatureExtract(int mode); |
| | | ~FeatureExtract(); |
| | | int size(); |
| | | int status(); |
| | | //int status(); |
| | | void reset(); |
| | | void insert(float *din, int len, int flag); |
| | | void insert(fftwf_plan plan, float *din, int len, int flag); |
| | | bool fetch(Tensor<float> *&dout); |
| | | }; |
| | | |