#include <iostream>
#include "feat/feature-fbank.h"
#include "base/kaldi-math.h"
#include "matrix/kaldi-matrix-inl.h"
#include "feat/wave-reader.h"
Go to the source code of this file.
Functions | |
static void | UnitTestReadWave () |
static void | UnitTestSimple () |
static void | UnitTestHTKCompare1 () |
static void | UnitTestHTKCompare2 () |
static void | UnitTestHTKCompare3 () |
static void | UnitTestHTKCompare4 () |
static void | UnitTestFeat () |
int | main () |
int main | ( | ) |
|
static |
Definition at line 446 of file feature-fbank-test.cc.
References UnitTestHTKCompare1(), UnitTestHTKCompare2(), UnitTestHTKCompare3(), UnitTestHTKCompare4(), UnitTestReadWave(), and kaldi::UnitTestSimple().
Referenced by main().
|
static |
THE FEATURES ARE ALMOST IDENTICAL WITH HTK!!! (SEE THE TOLERANCE!)
Definition at line 112 of file feature-fbank-test.cc.
References OfflineFeatureTpl< F >::Compute(), WaveData::Data(), FrameExtractionOptions::dither, FbankOptions::frame_opts, FbankOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, FbankOptions::mel_opts, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), FrameExtractionOptions::preemph_coeff, WaveData::Read(), kaldi::ReadHtk(), FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, MatrixBase< Real >::Row(), FbankOptions::use_energy, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
THE FEATURES ARE ALMOST IDENTICAL WITH HTK!!! (SEE THE TOLERANCE!)
Definition at line 193 of file feature-fbank-test.cc.
References OfflineFeatureTpl< F >::Compute(), WaveData::Data(), FrameExtractionOptions::dither, FbankOptions::frame_opts, FbankOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, FbankOptions::mel_opts, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), FrameExtractionOptions::preemph_coeff, WaveData::Read(), kaldi::ReadHtk(), FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, MatrixBase< Real >::Row(), FbankOptions::use_energy, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
THE FEATURES ARE ALMOST IDENTICAL WITH HTK!!! (SEE THE TOLERANCE!)
Definition at line 273 of file feature-fbank-test.cc.
References OfflineFeatureTpl< F >::Compute(), WaveData::Data(), FrameExtractionOptions::dither, FbankOptions::frame_opts, FbankOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, KALDI_WARN, MelBanksOptions::low_freq, FbankOptions::mel_opts, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), FrameExtractionOptions::preemph_coeff, WaveData::Read(), kaldi::ReadHtk(), FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, MatrixBase< Real >::Row(), FbankOptions::use_energy, MelBanksOptions::vtln_high, MelBanksOptions::vtln_low, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
THE FEATURES ARE ALMOST IDENTICAL WITH HTK!!! (SEE THE TOLERANCE!)
Definition at line 359 of file feature-fbank-test.cc.
References OfflineFeatureTpl< F >::Compute(), WaveData::Data(), FrameExtractionOptions::dither, FbankOptions::frame_opts, FbankOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, FbankOptions::mel_opts, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), FrameExtractionOptions::preemph_coeff, WaveData::Read(), kaldi::ReadHtk(), FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, MatrixBase< Real >::Row(), FbankOptions::use_energy, MelBanksOptions::vtln_high, MelBanksOptions::vtln_low, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
Definition at line 32 of file feature-fbank-test.cc.
References VectorBase< Real >::CopyFromVec(), WaveData::Data(), VectorBase< Real >::Dim(), rnnlm::i, KALDI_ASSERT, WaveData::Read(), Vector< Real >::Read(), and Vector< Real >::Resize().
Referenced by UnitTestFeat().
|
static |
Definition at line 76 of file feature-fbank-test.cc.
References OfflineFeatureTpl< F >::Compute(), VectorBase< Real >::Dim(), FrameExtractionOptions::dither, FbankOptions::frame_opts, FbankOptions::htk_compat, rnnlm::i, MelBanksOptions::low_freq, FbankOptions::mel_opts, FrameExtractionOptions::preemph_coeff, FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, FbankOptions::use_energy, and FrameExtractionOptions::window_type.