pysptk.sptk.mgc2sp¶
- pysptk.sptk.mgc2sp(ceps, alpha=0.0, gamma=0.0, fftlen=256)[source]¶
Mel-generalized cepstrum transform
- Parameters
- cepsarray
Mel-generalized cepstrum.
- alphafloat, optional
All-pass constant. Default is 0.0.
- gammafloat, optional
Gamma. Default is 0.0.
- fftlenint, optional
FFT length. Default is 256.
- Returns
- sparray, shape (
fftlen // 2 + 1
) Complex spectrum log_e(H(ω))
Warning
There’s no equivalent option
o
in SPTK’s mgc2sp. You have to normalize spectrum manually if needed.- sparray, shape (
- Raises
- ValueError
if invalid
gamma
is specifiedif non power of 2
fftlen
is specified