20 #ifndef KALDI_ITF_ONLINE_FEATURE_ITF_H_ 21 #define KALDI_ITF_ONLINE_FEATURE_ITF_H_ 1 82 virtual void GetFrames(
const std::vector<int32> &frames,
85 for (
size_t i = 0;
i < frames.size();
i++) {
111 virtual void AcceptWaveform(
BaseFloat sampling_rate,
118 virtual void InputFinished() = 0;
125 #endif // KALDI_ITF_ONLINE_FEATURE_ITF_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Base class which provides matrix operations not involving resizing or allocation. ...
virtual ~OnlineFeatureInterface()
Virtual destructor.
virtual void GetFrame(int32 frame, VectorBase< BaseFloat > *feat)=0
Gets the feature vector for this frame.
virtual void GetFrames(const std::vector< int32 > &frames, MatrixBase< BaseFloat > *feats)
This is like GetFrame() but for a collection of frames.
virtual bool IsLastFrame(int32 frame) const =0
Returns true if this is the last frame.
virtual BaseFloat FrameShiftInSeconds() const =0
Add a virtual class for "source" features such as MFCC or PLP or pitch features.
#define KALDI_ASSERT(cond)
MatrixIndexT NumRows() const
Returns number of rows (or zero for empty matrix).
OnlineFeatureInterface is an interface for online feature processing (it is also usable in the offlin...
Provides a vector abstraction class.
virtual int32 NumFramesReady() const =0
returns the feature dimension.
Represents a non-allocating general vector which can be defined as a sub-vector of higher-level vecto...
virtual int32 Dim() const =0