Update kaldi-native-fbank. (#2259)
Now it supports FFT of an even number, not necessarily a power of 2.
This commit is contained in:
@@ -197,6 +197,7 @@ class FeatureExtractor::Impl {
|
||||
opts_.frame_opts.remove_dc_offset = config_.remove_dc_offset;
|
||||
opts_.frame_opts.preemph_coeff = config_.preemph_coeff;
|
||||
opts_.frame_opts.window_type = config_.window_type;
|
||||
opts_.frame_opts.round_to_power_of_two = config_.round_to_power_of_two;
|
||||
|
||||
opts_.mel_opts.num_bins = config_.feature_dim;
|
||||
|
||||
@@ -216,6 +217,7 @@ class FeatureExtractor::Impl {
|
||||
mfcc_opts_.frame_opts.remove_dc_offset = config_.remove_dc_offset;
|
||||
mfcc_opts_.frame_opts.preemph_coeff = config_.preemph_coeff;
|
||||
mfcc_opts_.frame_opts.window_type = config_.window_type;
|
||||
mfcc_opts_.frame_opts.round_to_power_of_two = config_.round_to_power_of_two;
|
||||
|
||||
mfcc_opts_.mel_opts.num_bins = config_.feature_dim;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user