|
kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
|
Copyright 2009-2011 Phonexia s.r.o.; Microsoft Corporation 2016 Johns Hopkins University (author: Daniel Povey) Copyright (c) 2022 Xiaomi Corporation (authors: Fangjun Kuang). More...
#include <cmath>#include <cstdint>#include <sstream>#include <string>#include <utility>#include <vector>#include "kaldi-native-fbank/csrc/feature-window.h"

Go to the source code of this file.
Classes | |
| struct | knf::MelBanksOptions |
| Options for constructing triangular mel-filterbank bins. More... | |
| class | knf::MelBanks |
| Triangular mel-filterbank bins. More... | |
Namespaces | |
| namespace | knf |
| This file is part of kaldi-native-fbank. | |
Functions | |
| std::ostream & | knf::operator<< (std::ostream &os, const MelBanksOptions &opts) |
| Write the options to the stream, one option per line. | |
| void | knf::ComputeLifterCoeffs (float Q, std::vector< float > *coeffs) |
| Compute liftering coefficients (scaling on cepstral coeffs). | |
Copyright 2009-2011 Phonexia s.r.o.; Microsoft Corporation 2016 Johns Hopkins University (author: Daniel Povey) Copyright (c) 2022 Xiaomi Corporation (authors: Fangjun Kuang).
This file is copied/modified from kaldi/src/feat/mel-computations.h
See LICENSE for clarification regarding multiple authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Mel-filterbank construction and related computations.
This file provides the options and the class for computing triangular mel-filterbank bins, plus liftering coefficients used by MFCC. It is copied/modified from src/feat/mel-computations.h and additionally supports librosa-style mel filters.