|
kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
|
Options for the pitch post-processing stage (kaldi's ProcessPitchOptions). More...
#include <feature-pitch.h>
Public Member Functions | |
| int32_t | Dim () const |
Public Attributes | |
| float | pitch_scale = 2.0 |
| The final normalized-log-pitch feature is scaled with this value. | |
| float | pov_scale = 2.0 |
The final POV feature is scaled with this value. Kaldi --pov-scale. | |
| float | pov_offset = 0.0 |
| An offset that can be added to the final POV feature (useful for online decoding, where we don't do CMN to the pitch-derived features). | |
| float | delta_pitch_scale = 10.0 |
| Term to scale the final delta log-pitch feature. | |
| float | delta_pitch_noise_stddev = 0.005 |
| Standard deviation for the noise we add to the delta log-pitch (before scaling); should be about the same as the delta_pitch option to pitch creation. | |
| int32_t | normalization_left_context = 75 |
| Left-context (in frames) for moving-window normalization of the log pitch. | |
| int32_t | normalization_right_context = 75 |
| Right-context (in frames) for moving-window normalization of the log pitch; should be reduced in online decoding to reduce latency. | |
| int32_t | delta_window = 2 |
| Number of frames on each side of the central frame to use for the delta window. | |
| int32_t | delay = 0 |
| Number of frames by which the pitch information is delayed. | |
| bool | add_pov_feature = true |
| If true, the warped NCCF is added to the output features (1 dim). | |
| bool | add_normalized_log_pitch = true |
| If true, the log-pitch with POV-weighted mean subtraction over a 1.5 second window is added to the output features (1 dim). | |
| bool | add_delta_pitch = true |
| If true, the time derivative of log-pitch is added to the output features (1 dim). | |
| bool | add_raw_log_pitch = false |
| If true, log(pitch) is added to the output features (1 dim). | |
Options for the pitch post-processing stage (kaldi's ProcessPitchOptions).
Determines which features are produced from the raw (NCCF, pitch) pair. With the defaults, each frame is the 3-dimensional (POV-feature, normalized-log-pitch, delta-log-pitch) used by kaldi's compute-and-process-kaldi-pitch-feats; see src/feat/pitch-functions.h.
|
inline |
| bool knf::ProcessPitchOptions::add_delta_pitch = true |
If true, the time derivative of log-pitch is added to the output features (1 dim).
Kaldi --add-delta-pitch.
| bool knf::ProcessPitchOptions::add_normalized_log_pitch = true |
If true, the log-pitch with POV-weighted mean subtraction over a 1.5 second window is added to the output features (1 dim).
Kaldi --add-normalized-log-pitch.
| bool knf::ProcessPitchOptions::add_pov_feature = true |
If true, the warped NCCF is added to the output features (1 dim).
Kaldi --add-pov-feature.
| bool knf::ProcessPitchOptions::add_raw_log_pitch = false |
If true, log(pitch) is added to the output features (1 dim).
Kaldi --add-raw-log-pitch.
| int32_t knf::ProcessPitchOptions::delay = 0 |
Number of frames by which the pitch information is delayed.
Kaldi --delay.
| float knf::ProcessPitchOptions::delta_pitch_noise_stddev = 0.005 |
Standard deviation for the noise we add to the delta log-pitch (before scaling); should be about the same as the delta_pitch option to pitch creation.
The purpose is to get rid of peaks in the delta-pitch caused by discretization of pitch values. (The noise is drawn from a deterministic stream — see ComputeAndProcessKaldiPitch — so the features are reproducible.) Kaldi --delta-pitch-noise-stddev.
| float knf::ProcessPitchOptions::delta_pitch_scale = 10.0 |
Term to scale the final delta log-pitch feature.
Kaldi --delta-pitch-scale.
| int32_t knf::ProcessPitchOptions::delta_window = 2 |
Number of frames on each side of the central frame to use for the delta window.
Kaldi --delta-window.
| int32_t knf::ProcessPitchOptions::normalization_left_context = 75 |
Left-context (in frames) for moving-window normalization of the log pitch.
Kaldi --normalization-left-context.
| int32_t knf::ProcessPitchOptions::normalization_right_context = 75 |
Right-context (in frames) for moving-window normalization of the log pitch; should be reduced in online decoding to reduce latency.
Kaldi --normalization-right-context.
| float knf::ProcessPitchOptions::pitch_scale = 2.0 |
The final normalized-log-pitch feature is scaled with this value.
Kaldi --pitch-scale.
| float knf::ProcessPitchOptions::pov_offset = 0.0 |
An offset that can be added to the final POV feature (useful for online decoding, where we don't do CMN to the pitch-derived features).
Kaldi --pov-offset.
| float knf::ProcessPitchOptions::pov_scale = 2.0 |
The final POV feature is scaled with this value. Kaldi --pov-scale.