Snowman  0.1.0
raw-nnet-vad-stream.h
1 #pragma once
2 #include <deque>
3 #include <matrix-wrapper.h>
4 #include <memory>
5 #include <stream-itf.h>
6 
7 struct AGC_Instance;
8 struct NS3_Instance;
9 namespace snowboy {
10  struct OptionsItf;
11  class Nnet;
13  int non_voice_index;
14  float non_voice_threshold;
15  std::string model_filename;
16  void Register(const std::string&, OptionsItf*);
17  };
19  RawNnetVadStreamOptions m_options;
20  std::unique_ptr<Nnet> m_nnet;
21  // TODO: Do we need this ?
22  Matrix m_fieldx30;
23 
25  virtual int Read(Matrix* mat, std::vector<FrameInfo>* info) override;
26  virtual bool Reset() override;
27  virtual std::string Name() const override;
28  virtual ~RawNnetVadStream();
29  };
30 } // namespace snowboy
Definition: agc.cpp:31
Definition: ns3.cpp:14
Definition: matrix-wrapper.h:61
Definition: snowboy-options.h:8
Definition: raw-nnet-vad-stream.h:12
Definition: raw-nnet-vad-stream.h:18
Definition: stream-itf.h:9