mc2b
Functions
-
int main(int argc, char *argv[])
mc2b [ option ] [ infile ]
-m int
order of coefficients
-a double
all-pass constant
infile str
double-type mel-cepstral coefficients
stdout
double-type MLSA digital filter coefficients
The below example converts mel-cepstral coefficients into MLSA digital filter coefficients:
mc2b < data.mc > data.b
The converted MLSA digital filter coefficients can be reverted by
b2mc < data.b > data.mc
- Parameters
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns
0 on success, 1 on failure.
-
class sptk::MelCepstrumToMlsaDigitalFilterCoefficients
Convert mel-cepstral coefficients to MLSA digital filter coefficients.
The input is the
-th order mel-cepstral coefficients: -th order MLSA digital filter coefficients:[1] K. Tokuda, T. Kobayashi, T. Chiba, and S. Imai, “Spectral estimation of speech by mel-generalized cepstral analysis,” Electronics and Communications in Japan, part 3, vol. 76, no. 2, pp. 30-43, 1993.
Public Functions
-
MelCepstrumToMlsaDigitalFilterCoefficients(int num_order, double alpha)
- Parameters
num_order – [in] Order of coefficients,
.alpha – [in] Frequency warping factor,
.
-
inline int GetNumOrder() const
- Returns
Order of coefficients.
-
inline double GetAlpha() const
- Returns
Frequency warping factor.
-
inline bool IsValid() const
- Returns
True if this object is valid.
-
bool Run(const std::vector<double> &mel_cepstrum, std::vector<double> *mlsa_digital_filter_coefficients) const
- Parameters
mel_cepstrum – [in]
-th order mel-cepstral coefficients.mlsa_digital_filter_coefficients – [out]
-th order MLSA digital filter coefficients.
- Returns
True on success, false on failure.
-
bool Run(std::vector<double> *input_and_output) const
- Parameters
input_and_output – [inout]
-th order coefficients.- Returns
True on success, false on failure.
-
MelCepstrumToMlsaDigitalFilterCoefficients(int num_order, double alpha)