c2ndps#

class diffsptk.CepstrumToNegativeDerivativeOfPhaseSpectrum(cep_order, fft_length)[source]#

See this page for details.

Parameters:
cep_orderint >= 0

Order of cepstrum, \(M\).

fft_lengthint >= 2

Number of FFT bins, \(L\).

References

[1]

B. Yegnanarayana, “Pole-zero decomposition of speech spectra,” Signal Processing, vol. 3, no. 1, pp. 5-17, 1981.

forward(c)[source]#

Convert cepstrum to NDPS.

Parameters:
cTensor [shape=(…, M+1)]

Cepstrum.

Returns:
outTensor [shape=(…, L/2+1)]

NDPS.

Examples

>>> c = diffsptk.ramp(4)
>>> c2ndps = diffsptk.CepstrumToNegativeDerivativeOfPhaseSpectrum(4, 8)
>>> n = c2ndps(c)
>>> n
tensor([ 30.0000, -21.6569,  12.0000, -10.3431,  10.0000])
diffsptk.functional.c2ndps(c, fft_length)[source]#

Convert cepstrum to NDPS.

Parameters:
cTensor [shape=(…, M+1)]

Cepstrum.

fft_lengthint >= 2

Number of FFT bins, \(L\).

Returns:
outTensor [shape=(…, L/2+1)]

NDPS.

See also

ndps2c