pysptk.sptk.mgclsp2sp¶
- pysptk.sptk.mgclsp2sp(lsp, alpha=0.0, gamma=0.0, fftlen=256, gain=True)[source]¶
MGC-LSP to spectrum
- Parameters
- lsparray
MGC-LSP
- alphafloat, optional
All-pass constant. Default is 0.0.
- gammafloat, optional
Gamma. Default is 0.0.
- fftlenint, optional
FFT length. Default is 256.
- gainbool, optional
Whether the input MGC-LSP should have loggain or not. Default is True.
- Returns
- sparray, shape (
fftlen // 2 + 1
) Complex spectrum
- sparray, shape (
- Raises
- ValueError
if invalid
gamma
is specifiedif non power of 2
fftlen
is specified
See also