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

@@ -18,9 +18,7 @@ def create_fbank():
opts.frame_opts.preemph_coeff = 0
opts.frame_opts.window_type = "hann"
# Even though GigaAM uses 400 for fft, here we use 512
# since kaldi-native-fbank only supports fft for power of 2.
opts.frame_opts.round_to_power_of_two = True
opts.frame_opts.round_to_power_of_two = False
opts.mel_opts.low_freq = 0
opts.mel_opts.high_freq = 8000

View File

@@ -19,9 +19,7 @@ def create_fbank():
opts.frame_opts.preemph_coeff = 0
opts.frame_opts.window_type = "hann"
# Even though GigaAM uses 400 for fft, here we use 512
# since kaldi-native-fbank only supports fft for power of 2.
opts.frame_opts.round_to_power_of_two = True
opts.frame_opts.round_to_power_of_two = False
opts.mel_opts.low_freq = 0
opts.mel_opts.high_freq = 8000