mc2b#
- class diffsptk.MelCepstrumToMLSADigitalFilterCoefficients(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(mc)[source]#
Convert mel-cepstrum to MLSA filter coefficients.
- Parameters:
- mcTensor [shape=(…, M+1)]
Mel-cepstral coefficients.
- Returns:
- bTensor [shape=(…, M+1)]
MLSA filter coefficients.
Examples
>>> mc = diffsptk.ramp(4) >>> mc2b = diffsptk.MelCepstrumToMLSADigitalFilterCoefficients(4, 0.3) >>> b = mc2b(mc) >>> b tensor([-0.1686, 0.5620, 1.4600, 1.8000, 4.0000])
See also