imglsadf

Functions

int main(int argc, char *argv[])

imglsadf [ option ] mgcfile [ infile ]

  • -m int

    • order of coefficients \((0 \le M)\)

  • -a double

    • all-pass constant \((|\alpha| < 1)\)

  • -c int

    • gamma \(\gamma = -1 / C\) \((0 \le C)\)

  • -p int

    • frame period \((1 \le P)\)

  • -i int

    • interpolation period \((0 \le I \le P/2)\)

  • -P int

    • order of Pade approximation \((4 \le L \le 7)\)

  • -t

    • transpose filter

  • -k

    • filtering without gain

  • mgcfile str

    • double-type mel-generalized cepstral coefficients

  • infile str

    • double-type input sequence

  • stdout

    • double-type output sequence

Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

mglsadf mgcep

class InverseMglsaDigitalFilter

Apply inverse MLSA filter to speech signals.

Public Functions

InverseMglsaDigitalFilter(int num_filter_order, int num_pade_order, int num_stage, double alpha, bool transposition)
Parameters:
  • num_filter_order[in] Order of filter coefficients, \(M\).

  • num_pade_order[in] Order of Pade approximation, \(L\).

  • num_stage[in] Number of stages, \(C\). If zero, MLSA filter is used.

  • alpha[in] All-pass constant, \(\alpha\).

  • transposition[in] If true, use transposed form filter.

inline int GetNumFilterOrder() const
Returns:

Order of coefficients.

inline int GetNumPadeOrder() const
Returns:

Order of Pade approximation.

inline int GetNumStage() const
Returns:

Number of stages.

inline double GetAlpha() const
Returns:

All-pass constant.

inline bool GetTranspositionFlag() const
Returns:

True if transposed form is used.

inline bool IsValid() const
Returns:

True if this object is valid.

bool Run(const std::vector<double> &filter_coefficients, double filter_input, double *filter_output, InverseMglsaDigitalFilter::Buffer *buffer) const
Parameters:
  • filter_coefficients[in] \(M\)-th order MGLSA filter coefficients.

  • filter_input[in] Input signal.

  • filter_output[out] Output signal.

  • buffer[inout] Buffer.

Returns:

True on success, false on failure.

bool Run(const std::vector<double> &filter_coefficients, double *input_and_output, InverseMglsaDigitalFilter::Buffer *buffer) const
Parameters:
  • filter_coefficients[in] \(M\)-th order MGLSA filter coefficients.

  • input_and_output[inout] Input/output signal.

  • buffer[inout] Buffer.

Returns:

True on success, false on failure.

class Buffer

Buffer for InverseMglsaDigitalFilter class.