pysptk.sptk.lpc2lsp

pysptk.sptk.lpc2lsp()

LPC to LSP

Parameters:
lpc : array

LPC

numsp : int

Number of unit circle. Default is 512.

maxiter : int

Maximum number of iteration. Default is 4.

eps : float

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

loggain : bool

whether the converted lsp should have loggain or not. Default is False.

fs : int

Sampling frequency. Default is None and unused.

otype : int
Output format LSP

0 normalized frequency (0 ~ pi) 1 normalized frequency (0 ~ 0.5) 2 frequency (kHz) 3 frequency (Hz)

Default is 0.

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

LSP

Raises:
ValueError

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