pysptk.util.mcepalpha¶
- pysptk.util.mcepalpha(fs, start=0.0, stop=1.0, step=0.001, num_points=1000)[source]¶
Compute appropriate frequency warping parameter given a sampling frequency
It would be useful to determine alpha parameter in mel-cepstrum analysis.
The code is traslated from https://bitbucket.org/happyalu/mcep_alpha_calc.
- Parameters
- fsint
Sampling frequency
- startfloat
start value that will be passed to numpy.arange. Default is 0.0.
- stopfloat
stop value that will be passed to numpy.arange. Default is 1.0.
- stepfloat
step value that will be passed to numpy.arange. Default is 0.001.
- num_pointsint
Number of points used in approximating mel-scale vectors in fixed- length.
- Returns
- alphafloat
frequency warping paramter (offen denoted by alpha)
See also