pysptk.sptk.lpc2lsp

pysptk.sptk.lpc2lsp(lpc, numsp=512, maxiter=4, eps=1e-06, loggain=False, otype=0, fs=None)

LPC to LSP

Parameters:
lpc : array

LPC

numsp : int, optional

Number of unit circle. Default is 512.

maxiter : int, optional

Maximum number of iteration. Default is 4.

eps : float, optional

End condition for iteration. Default is 1.0e-6.

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
  1. normalized frequency (0 ~ pi)
  2. normalized frequency (0 ~ 0.5)
  3. frequency (kHz)
  4. frequency (Hz)

Default is 0.

Returns:
lsp : array, shape (order + 1)

LSP

Raises:
ValueError

if fs is not specified when otype = 2 or 3.