pysptk.sptk.lsp2sp¶
- pysptk.sptk.lsp2sp(lsp, fftlen=256, has_gain=True, loggain=False, fs=None, itype=0)[source]¶
LSP to spectrum
- Parameters
- lsparray
LSP
- fftlenint, optional
FFT length
- has_gainbool, optional
Whether input LPC has gain at the index 0 or not. Default is True.
- loggainbool, optional
If True, it’s assumed that input LPC has loggain and convert it to linear gain. Default is False.
- fsint, optional
Sampling frequency. Default is None and unused.
- itypeint, optional
- Input LPC format
normalized frequency (0 ~ pi)
normalized frequency (0 ~ 0.5)
frequency (kHz)
frequency (Hz)
Default is 0.
- Returns
- sparray, shape
Spectrum. ln|H(z)|.
See also