b2mc#

class diffsptk.MLSADigitalFilterCoefficientsToMelCepstrum(cep_order, alpha=0)[source]#

See this page for details.

Parameters:
cep_orderint >= 0 [scalar]

Order of cepstrum, \(M\).

alphafloat [-1 < alpha < 1]

Frequency warping factor, \(\alpha\).

forward(b)[source]#

Convert MLSA filter coefficients to mel-cepstrum.

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

MLSA filter coefficients.

Returns:
mcTensor [shape=(…, M+1)]

Mel-cepstral coefficients.

Examples

>>> b = diffsptk.ramp(4)
>>> mc2b = diffsptk.MelCepstrumToMLSADigitalFilterCoefficients(4, 0.3)
>>> b2mc = diffsptk.MLSADigitalFilterCoefficientsToMelCepstrum(4, 0.3)
>>> b2 = mc2b(b2mc(b))
>>> b2
tensor([0.0000, 1.0000, 2.0000, 3.0000, 4.0000])

See also

mc2b