PitchInterpolatorOptions Struct Reference
Collaboration diagram for PitchInterpolatorOptions:

Public Member Functions

 PitchInterpolatorOptions ()
 
void Register (OptionsItf *opts)
 
void Check () const
 

Public Attributes

BaseFloat pitch_interval
 
BaseFloat interpolator_factor
 
BaseFloat max_voicing_prob
 
BaseFloat max_pitch_change_per_frame
 

Detailed Description

Definition at line 26 of file interpolate-pitch.cc.

Constructor & Destructor Documentation

◆ PitchInterpolatorOptions()

Member Function Documentation

◆ Check()

void Check ( ) const
inline

Definition at line 52 of file interpolate-pitch.cc.

References KALDI_ASSERT.

Referenced by PitchInterpolator::PitchInterpolator().

52  {
53  KALDI_ASSERT(pitch_interval > 0.0 && pitch_interval < 20.0 &&
55  max_voicing_prob <= 1.0 && max_voicing_prob >= 0.5 &&
57  }
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:185

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 38 of file interpolate-pitch.cc.

References OptionsItf::Register().

Referenced by main().

38  {
39  opts->Register("pitch-interval", &pitch_interval, "Frequency interval in Hz, used "
40  "for the pitch interpolation and smoothing algorithm.");
41  opts->Register("interpolator-factor", &interpolator_factor, "Factor affecting the "
42  "interpolation algorithm; setting it closer to zero will cause "
43  "it to follow the measured pitch more faithfully but less "
44  "smoothly");
45  opts->Register("max-voicing-prob", &max_voicing_prob, "Probability of voicing the "
46  "algorithm uses as the observed p(voicing) approaches 1; having "
47  "value <1 allows it to interpolate even if p(voicing) = 1");
48  opts->Register("max-pitch-change-per-frame", &max_pitch_change_per_frame,
49  "This value should be set large enough to no longer affect the "
50  "results, but the larger it is the slower the algorithm will be.");
51  }
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0

Member Data Documentation

◆ interpolator_factor

BaseFloat interpolator_factor

Definition at line 28 of file interpolate-pitch.cc.

◆ max_pitch_change_per_frame

BaseFloat max_pitch_change_per_frame

Definition at line 33 of file interpolate-pitch.cc.

◆ max_voicing_prob

BaseFloat max_voicing_prob

Definition at line 31 of file interpolate-pitch.cc.

◆ pitch_interval


The documentation for this struct was generated from the following file: