#include <iostream>
#include "feat/feature-mfcc.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 | UnitTestHTKCompare5 () |
static void | UnitTestHTKCompare6 () |
void | UnitTestVtln () |
static void | UnitTestFeat () |
int | main () |
int main | ( | ) |
|
static |
Definition at line 656 of file feature-mfcc-test.cc.
References UnitTestHTKCompare1(), UnitTestHTKCompare2(), UnitTestHTKCompare3(), UnitTestHTKCompare4(), UnitTestHTKCompare5(), UnitTestHTKCompare6(), UnitTestReadWave(), kaldi::UnitTestSimple(), and UnitTestVtln().
Referenced by main().
|
static |
Definition at line 112 of file feature-mfcc-test.cc.
References OfflineFeatureTpl< F >::Compute(), kaldi::ComputeDeltas(), WaveData::Data(), FrameExtractionOptions::dither, MfccOptions::frame_opts, MfccOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, MfccOptions::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(), MfccOptions::use_energy, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
Definition at line 196 of file feature-mfcc-test.cc.
References OfflineFeatureTpl< F >::Compute(), kaldi::ComputeDeltas(), WaveData::Data(), FrameExtractionOptions::dither, MfccOptions::frame_opts, MfccOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, MfccOptions::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(), MfccOptions::use_energy, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
Definition at line 280 of file feature-mfcc-test.cc.
References OfflineFeatureTpl< F >::Compute(), kaldi::ComputeDeltas(), WaveData::Data(), FrameExtractionOptions::dither, MfccOptions::frame_opts, MfccOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, MfccOptions::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(), MfccOptions::use_energy, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
Definition at line 365 of file feature-mfcc-test.cc.
References OfflineFeatureTpl< F >::Compute(), kaldi::ComputeDeltas(), WaveData::Data(), FrameExtractionOptions::dither, MfccOptions::frame_opts, MfccOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, MfccOptions::mel_opts, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), WaveData::Read(), kaldi::ReadHtk(), FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, MatrixBase< Real >::Row(), MfccOptions::use_energy, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
Definition at line 448 of file feature-mfcc-test.cc.
References OfflineFeatureTpl< F >::Compute(), kaldi::ComputeDeltas(), WaveData::Data(), FrameExtractionOptions::dither, MfccOptions::frame_opts, MfccOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, MfccOptions::mel_opts, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), WaveData::Read(), kaldi::ReadHtk(), FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, MatrixBase< Real >::Row(), MfccOptions::use_energy, MelBanksOptions::vtln_high, MelBanksOptions::vtln_low, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
Definition at line 535 of file feature-mfcc-test.cc.
References OfflineFeatureTpl< F >::Compute(), kaldi::ComputeDeltas(), WaveData::Data(), FrameExtractionOptions::dither, MfccOptions::frame_opts, MelBanksOptions::high_freq, MfccOptions::htk_compat, rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, MelBanksOptions::low_freq, MfccOptions::mel_opts, MelBanksOptions::num_bins, 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(), MfccOptions::use_energy, FrameExtractionOptions::window_type, and kaldi::WriteHtk().
Referenced by UnitTestFeat().
|
static |
Definition at line 32 of file feature-mfcc-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-mfcc-test.cc.
References OfflineFeatureTpl< F >::Compute(), VectorBase< Real >::Dim(), FrameExtractionOptions::dither, MfccOptions::frame_opts, MfccOptions::htk_compat, MelBanksOptions::htk_mode, rnnlm::i, MelBanksOptions::low_freq, MfccOptions::mel_opts, FrameExtractionOptions::preemph_coeff, FrameExtractionOptions::remove_dc_offset, FrameExtractionOptions::round_to_power_of_two, and FrameExtractionOptions::window_type.
void UnitTestVtln | ( | ) |
Definition at line 620 of file feature-mfcc-test.cc.
References kaldi::AssertEqual(), rnnlm::i, KALDI_ASSERT, kaldi::RandUniform(), and MelBanks::VtlnWarpFreq().
Referenced by UnitTestFeat().