pull/2003/head
Yang Zhou 3 years ago
parent ce322a60f8
commit 1a10c4cde8

@ -15,8 +15,8 @@
#pragma once
#include "base/common.h"
#include "frontend/audio/frontend_itf.h"
#include "frontend/audio/feature_common.h"
#include "frontend/audio/frontend_itf.h"
#include "kaldi/feat/feature-fbank.h"
#include "kaldi/feat/feature-mfcc.h"
#include "kaldi/matrix/kaldi-vector.h"
@ -29,7 +29,7 @@ class FbankComputer {
explicit FbankComputer(const Options& opts);
kaldi::FrameExtractionOptions& GetFrameOptions() {
return opts_.frame_opts;
return opts_.frame_opts;
}
bool Compute(kaldi::Vector<kaldi::BaseFloat>* window,
@ -42,7 +42,7 @@ class FbankComputer {
Options opts_;
kaldi::FbankComputer computer_;
//DISALLOW_COPY_AND_ASSIGN(FbankComputer);
DISALLOW_COPY_AND_ASSIGN(FbankComputer);
};
typedef StreamingFeatureTpl<FbankComputer> Fbank;

@ -16,15 +16,15 @@
#pragma once
#include "base/common.h"
#include "frontend/audio/feature_common.h"
#include "frontend/audio/frontend_itf.h"
#include "kaldi/feat/feature-window.h"
#include "frontend/audio/feature_common.h"
namespace ppspeech {
struct LinearSpectrogramOptions {
kaldi::FrameExtractionOptions frame_opts;
LinearSpectrogramOptions(): frame_opts() {}
LinearSpectrogramOptions() : frame_opts() {}
};
class LinearSpectrogramComputer {
@ -33,7 +33,7 @@ class LinearSpectrogramComputer {
explicit LinearSpectrogramComputer(const Options& opts);
kaldi::FrameExtractionOptions& GetFrameOptions() {
return opts_.frame_opts;
return opts_.frame_opts;
}
bool Compute(kaldi::Vector<kaldi::BaseFloat>* window,
@ -48,11 +48,10 @@ class LinearSpectrogramComputer {
Options opts_;
int32 frame_length_;
int32 dim_;
DISALLOW_COPY_AND_ASSIGN(LinearSpectrogramComputer);
};
typedef StreamingFeatureTpl<LinearSpectrogramComputer> LinearSpectrogram;
//DISALLOW_COPY_AND_ASSIGN(LinearSpectrogram);
} // namespace ppspeech
Loading…
Cancel
Save