Update kaldi-native-fbank. (#2259)

Now it supports FFT of an even number, not necessarily a power of 2.
This commit is contained in:
Fangjun Kuang
2025-05-29 10:34:22 +08:00
committed by GitHub
parent d8b5a58898
commit 8e6826521e
9 changed files with 28 additions and 16 deletions

View File

@@ -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;