#include <online-feat-input.h>


Public Member Functions | |
| OnlineFeInput (OnlineAudioSourceItf *au_src, E *fe, const int32 frame_size, const int32 frame_shift, const bool snip_edges=true) | |
| virtual int32 | Dim () const |
| virtual bool | Compute (Matrix< BaseFloat > *output) |
Public Member Functions inherited from OnlineFeatInputItf | |
| virtual | ~OnlineFeatInputItf () |
Private Member Functions | |
| KALDI_DISALLOW_COPY_AND_ASSIGN (OnlineFeInput) | |
Private Attributes | |
| OnlineAudioSourceItf * | source_ |
| E * | extractor_ |
| const int32 | frame_size_ |
| const int32 | frame_shift_ |
| Vector< BaseFloat > | wave_ |
| Vector< BaseFloat > | wave_remainder_ |
| FrameExtractionOptions | frame_opts_ |
Definition at line 272 of file online-feat-input.h.
| OnlineFeInput | ( | OnlineAudioSourceItf * | au_src, |
| E * | fe, | ||
| const int32 | frame_size, | ||
| const int32 | frame_shift, | ||
| const bool | snip_edges = true |
||
| ) |
Definition at line 300 of file online-feat-input.h.
References FrameExtractionOptions::frame_length_ms, OnlineFeInput< E >::frame_opts_, FrameExtractionOptions::frame_shift_ms, FrameExtractionOptions::samp_freq, and FrameExtractionOptions::snip_edges.
Implements OnlineFeatInputItf.
Definition at line 314 of file online-feat-input.h.
References OnlineFeInput< E >::extractor_, OnlineFeInput< E >::frame_opts_, OnlineFeInput< E >::frame_shift_, OnlineFeInput< E >::frame_size_, KALDI_ASSERT, KALDI_WARN, kaldi::NumFrames(), MatrixBase< Real >::NumRows(), VectorBase< Real >::Range(), OnlineAudioSourceItf::Read(), Matrix< Real >::Resize(), OnlineFeInput< E >::source_, and OnlineFeInput< E >::wave_remainder_.
|
inlinevirtual |
Implements OnlineFeatInputItf.
Definition at line 282 of file online-feat-input.h.
References OnlineFeatInputItf::Compute().
|
private |
|
private |
Definition at line 288 of file online-feat-input.h.
Referenced by OnlineFeInput< E >::Compute().
|
private |
Definition at line 294 of file online-feat-input.h.
Referenced by OnlineFeInput< E >::Compute(), and OnlineFeInput< E >::OnlineFeInput().
|
private |
Definition at line 290 of file online-feat-input.h.
Referenced by OnlineFeInput< E >::Compute().
|
private |
Definition at line 289 of file online-feat-input.h.
Referenced by OnlineFeInput< E >::Compute().
|
private |
Definition at line 287 of file online-feat-input.h.
Referenced by OnlineFeInput< E >::Compute().
Definition at line 291 of file online-feat-input.h.
Definition at line 292 of file online-feat-input.h.
Referenced by OnlineFeInput< E >::Compute().