pysptk.sptk.lpc2lsp¶
-
pysptk.sptk.
lpc2lsp
(lpc, numsp=128, maxiter=4, eps=1e-06, has_gain=True, loggain=False, otype=0, fs=None)¶ LPC to LSP
Parameters: - lpc : array
LPC
- numsp : int, optional
Number of unit circle. Default is 128.
- maxiter : int, optional
Maximum number of iteration. Default is 4.
- eps : float, optional
End condition for iteration. Default is 1.0e-6.
- has_gain : bool, optional
Whether input LPC has gain at the index 0 or not. Default is True.
- loggain : bool, optional
whether the converted lsp should have loggain or not. Default is False.
- fs : int, optional
Sampling frequency. Default is None and unused.
- otype : int, optional
- Output format LSP
- normalized frequency (0 ~ pi)
- normalized frequency (0 ~ 0.5)
- frequency (kHz)
- frequency (Hz)
Default is 0.
Returns: - lsp : array, shape (
order + 1
) LSP
Raises: - ValueError
if
fs
is not specified when otype = 2 or 3.
See also