62#ifndef KALDI_NATIVE_FBANK_CSRC_FEATURE_PITCH_H_
63#define KALDI_NATIVE_FBANK_CSRC_FEATURE_PITCH_H_
367 std::unique_ptr<Impl> impl_;
391 const float *wave, int32_t n);
float FrameShiftInSeconds() const
int32_t NumFramesReady() const
std::vector< float > GetFrame(int32_t frame) const
Return the frame-th feature vector.
bool IsLastFrame(int32_t frame) const
void AcceptWaveform(float sampling_rate, const float *waveform, int32_t n)
Add waveform samples to the extractor.
OnlinePitch(const PitchExtractionOptions &opts, const ProcessPitchOptions &popts={})
Construct with the given extraction and post-processing options.
void InputFinished()
Tell the extractor no more waveform will be added; this flushes out the last frames and fixes the fea...
kaldi-native-fbank/kaldi-native-fbank/csrc/feature-matrix.h
This file is part of kaldi-native-fbank.
Definition feature-cmvn.h:42
MatrixF ComputeAndProcessKaldiPitch(const PitchExtractionOptions &pitch_opts, const ProcessPitchOptions &process_opts, const float *wave, int32_t n)
Batch pitch extraction (kaldi's ComputeAndProcessKaldiPitch).
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > MatrixF
Row-major feature matrix: rows are frames, columns are features.
Definition feature-matrix.h:26
Options for the pitch post-processing stage (kaldi's ProcessPitchOptions).
Definition feature-pitch.h:217
bool add_pov_feature
If true, the warped NCCF is added to the output features (1 dim).
Definition feature-pitch.h:262
int32_t delay
Number of frames by which the pitch information is delayed.
Definition feature-pitch.h:258
bool add_raw_log_pitch
If true, log(pitch) is added to the output features (1 dim).
Definition feature-pitch.h:275
float delta_pitch_scale
Term to scale the final delta log-pitch feature.
Definition feature-pitch.h:232
int32_t Dim() const
Definition feature-pitch.h:278
int32_t delta_window
Number of frames on each side of the central frame to use for the delta window.
Definition feature-pitch.h:254
float pov_scale
The final POV feature is scaled with this value. Kaldi --pov-scale.
Definition feature-pitch.h:223
float pitch_scale
The final normalized-log-pitch feature is scaled with this value.
Definition feature-pitch.h:220
int32_t normalization_left_context
Left-context (in frames) for moving-window normalization of the log pitch.
Definition feature-pitch.h:245
int32_t normalization_right_context
Right-context (in frames) for moving-window normalization of the log pitch; should be reduced in onli...
Definition feature-pitch.h:250
bool add_delta_pitch
If true, the time derivative of log-pitch is added to the output features (1 dim).
Definition feature-pitch.h:271
float delta_pitch_noise_stddev
Standard deviation for the noise we add to the delta log-pitch (before scaling); should be about the ...
Definition feature-pitch.h:241
float pov_offset
An offset that can be added to the final POV feature (useful for online decoding, where we don't do C...
Definition feature-pitch.h:228
bool add_normalized_log_pitch
If true, the log-pitch with POV-weighted mean subtraction over a 1.5 second window is added to the ou...
Definition feature-pitch.h:267