| 35 | dct_coefficient_count_(kDefaultDCTCoefficientCount) {} |
| 36 | |
| 37 | bool Mfcc::Initialize(int input_length, double input_sample_rate) { |
| 38 | bool initialized = mel_filterbank_.Initialize( |
| 39 | input_length, input_sample_rate, filterbank_channel_count_, |
| 40 | lower_frequency_limit_, upper_frequency_limit_); |
| 41 | initialized &= |
| 42 | dct_.Initialize(filterbank_channel_count_, dct_coefficient_count_); |
| 43 | initialized_ = initialized; |
| 44 | return initialized; |
| 45 | } |
| 46 | |
| 47 | void Mfcc::Compute(const std::vector<double>& spectrogram_frame, |
| 48 | std::vector<double>* output) const { |
no outgoing calls