c2ndps#

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

See this page for details.

Parameters:
cep_orderint >= 0 [scalar]

Order of cepstrum, \(M\).

fft_lengthint >= 2 [scalar]

Number of FFT bins, \(L\).

forward(c)[source]#

Convert cepstrum to NDPS.

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

Cepstrum.

Returns:
nTensor [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])

See also

ndps2c