feature-functions.h File Reference
#include <string>
#include <vector>
#include "matrix/matrix-lib.h"
#include "util/common-utils.h"
#include "base/kaldi-error.h"
Include dependency graph for feature-functions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  DeltaFeaturesOptions
class  DeltaFeatures
struct  ShiftedDeltaFeaturesOptions
class  ShiftedDeltaFeatures
struct  SlidingWindowCmnOptions


 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:


void ComputePowerSpectrum (VectorBase< BaseFloat > *waveform)
void ComputeDeltas (const DeltaFeaturesOptions &delta_opts, const MatrixBase< BaseFloat > &input_features, Matrix< BaseFloat > *output_features)
void ComputeShiftedDeltas (const ShiftedDeltaFeaturesOptions &delta_opts, const MatrixBase< BaseFloat > &input_features, Matrix< BaseFloat > *output_features)
void SpliceFrames (const MatrixBase< BaseFloat > &input_features, int32 left_context, int32 right_context, Matrix< BaseFloat > *output_features)
void ReverseFrames (const MatrixBase< BaseFloat > &input_features, Matrix< BaseFloat > *output_features)
void InitIdftBases (int32 n_bases, int32 dimension, Matrix< BaseFloat > *mat_out)
void SlidingWindowCmn (const SlidingWindowCmnOptions &opts, const MatrixBase< BaseFloat > &input, MatrixBase< BaseFloat > *output)
 Applies sliding-window cepstral mean and/or variance normalization. More...