pysptk.sptk.mgcep¶
- pysptk.sptk.mgcep(windowed, order=25, alpha=0.35, gamma=0.0, num_recursions=None, miniter=2, maxiter=30, threshold=0.001, etype=0, eps=0.0, min_det=1e-06, itype=0, otype=0)[source]¶
Mel-generalized cepstrum analysis
- Parameters
- windowedarray, shape (
frame_len
) A windowed frame
- orderint, optional
Order of mel-generalized cepstrum. Default is 25.
- alphafloat, optional
All pass constant. Default is 0.35.
- gammafloat, optional
Parameter of generalized log function. Default is 0.0.
- num_recursionsint, optional
Number of recursions. Default is
len(windowed) - 1
.- miniterint, optional
Minimum number of iteration. Default is 2.
- maxiterint, optional
Maximum number of iteration. Default is 30.
- thresholdfloat, optional
Threshold. Default is 0.001.
- etypeint, optional
- Type of paramter
e
not used
initial value of log-periodogram
floor of periodogram in db
Default is 0.
- Type of paramter
- epsfloat, optional
Initial value for log-periodogram or floor of periodogram in db. Default is 0.0.
- min_detfloat, optional
Mimimum value of the determinant of normal matrix. Default is 1.0e-6.
- itypefloat, optional
- Input data type
windowed signal
log amplitude in db
log amplitude
amplitude
periodogram
Default is 0.
- otypeint, optional
- Output data type
mel generalized cepstrum: (c~0…c~m)
MGLSA filter coefficients: b0…bm
K~,c~’1…c~’m
K,b’1…b’m
K~,g*c~’1…g*c~’m
K,g*b’1…g*b’m
Default is 0.
- windowedarray, shape (
- Returns
- mgcarray, shape (
order + 1
) mel-generalized cepstrum
- mgcarray, shape (
- Raises
- ValueError
if invalid
itype
is specifiedif invalid
etype
is specifiedif nonzero
eps
is specified when etype = 0if negative
eps
is specifiedif negative
min_det
is specifiedif invalid
otype
is specified
- RuntimeError
if error happened in theq