pysptk.sptk.mgc2mgc

pysptk.sptk.mgc2mgc(src_ceps, src_alpha=0.0, src_gamma=0.0, dst_order=None, dst_alpha=0.0, dst_gamma=0.0)

Mel-generalized cepstrum transform

Parameters:

src_ceps : array

Mel-generalized cepstrum.

src_alpha : float, optional

All-pass constant of source cesptrum. Default is 0.0.

src_gamma : float, optional

Gamma of source cepstrum. Default is 0.0.

dst_order : int, optional

Order of destination cepstrum. Default is len(src_ceps) - 1.

dst_alpha : float, optional

All-pass constant of destination cesptrum. Default is 0.0.

dst_gamma : float, optional

Gamma of destination cepstrum. Default is 0.0.

Returns:

dst_ceps : array, shape (dst_order + 1)

Converted mel-generalized cepstrum

Raises:

ValueError

  • if invalid src_gamma is specified
  • if invalid dst_gamma is specified