Skip to content

Commit

Permalink
Fix computing features for whisper. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Feb 29, 2024
1 parent 8142b24 commit cd20baa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cmake_minimum_required(VERSION 3.3 FATAL_ERROR)

project(kaldi-native-fbank CXX C)

set(KALDI_NATIVE_FBANK_VERSION "1.18.6")
set(KALDI_NATIVE_FBANK_VERSION "1.18.7")

# Disable warning about
#
Expand Down
1 change: 1 addition & 0 deletions kaldi-native-fbank/csrc/mel-computations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ void MelBanks::InitKaldiMelBanks(const MelBanksOptions &opts,
void MelBanks::InitLibrosaMelBanks(const MelBanksOptions &opts,
const FrameExtractionOptions &frame_opts,
float vtln_warp_factor) {
htk_mode_ = opts.htk_mode;
int32_t num_bins = opts.num_bins;
if (num_bins < 3) {
KNF_LOG(FATAL) << "Must have at least 3 mel bins";
Expand Down
4 changes: 2 additions & 2 deletions kaldi-native-fbank/csrc/mel-computations.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ class MelBanks {
std::vector<std::pair<int32_t, std::vector<float>>> bins_;

// TODO(fangjun): Remove debug_ and htk_mode_
bool debug_;
bool htk_mode_;
bool debug_ = false;
bool htk_mode_ = false;
};

} // namespace knf
Expand Down

0 comments on commit cd20baa

Please sign in to comment.