|
|
@ -25,7 +25,7 @@ class StreamingFeatureTpl : public FrontendInterface {
|
|
|
|
typedef typename F::Options Options;
|
|
|
|
typedef typename F::Options Options;
|
|
|
|
StreamingFeatureTpl(const Options& opts,
|
|
|
|
StreamingFeatureTpl(const Options& opts,
|
|
|
|
std::unique_ptr<FrontendInterface> base_extractor);
|
|
|
|
std::unique_ptr<FrontendInterface> base_extractor);
|
|
|
|
virtual void Accept(const kaldi::VectorBase<kaldi::BaseFloat>& inputs);
|
|
|
|
virtual void Accept(const kaldi::VectorBase<kaldi::BaseFloat>& waves);
|
|
|
|
virtual bool Read(kaldi::Vector<kaldi::BaseFloat>* feats);
|
|
|
|
virtual bool Read(kaldi::Vector<kaldi::BaseFloat>* feats);
|
|
|
|
|
|
|
|
|
|
|
|
// the dim_ is the dim of single frame feature
|
|
|
|
// the dim_ is the dim of single frame feature
|
|
|
@ -51,4 +51,4 @@ class StreamingFeatureTpl : public FrontendInterface {
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace ppspeech
|
|
|
|
} // namespace ppspeech
|
|
|
|
|
|
|
|
|
|
|
|
#include "frontend/audio/feature_common_inl.h"
|
|
|
|
#include "frontend/audio/feature_common_inl.h"
|
|
|
|