|
kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
|
kaldi-native-fbank/kaldi-native-fbank/csrc/feature-pitch.h More...
#include <stdint.h>#include <memory>#include <vector>#include "kaldi-native-fbank/csrc/feature-matrix.h"
Go to the source code of this file.
Classes | |
| struct | knf::PitchExtractionOptions |
| Options for the raw pitch extraction stage (kaldi's PitchExtractionOptions). More... | |
| struct | knf::ProcessPitchOptions |
| Options for the pitch post-processing stage (kaldi's ProcessPitchOptions). More... | |
| class | knf::OnlinePitch |
| Streaming pitch extraction with post-processing (kaldi's OnlinePitchFeature + OnlineProcessPitch). More... | |
Namespaces | |
| namespace | knf |
| This file is part of kaldi-native-fbank. | |
Functions | |
| MatrixF | knf::ComputeAndProcessKaldiPitch (const PitchExtractionOptions &pitch_opts, const ProcessPitchOptions &process_opts, const float *wave, int32_t n) |
| Batch pitch extraction (kaldi's ComputeAndProcessKaldiPitch). | |
kaldi-native-fbank/kaldi-native-fbank/csrc/feature-pitch.h
This file is part of kaldi-native-fbank.
Pitch extraction (ported from kaldi's src/feat/pitch-functions.h).
Implements the pitch extraction method described in "A Pitch Extraction Algorithm Tuned for Automatic Speech Recognition", Pegah Ghahremani, Bagher BabaAli, Daniel Povey, Korbinian Riedhammer, Jan Trmal and Sanjeev Khudanpur, ICASSP 2014 (https://www.danielpovey.com/files/icassp2014_pitch.pdf).
The extraction happens in two stages, mirroring kaldi:
The streaming entry point is OnlinePitch; the batch entry point is ComputeAndProcessKaldiPitch, which reproduces the output of kaldi's compute-and-process-kaldi-pitch-feats bit-for-bit (with identical options and input).