iltcdf
Functions
-
int main(int argc, char *argv[])
iltcdf [ option ] kfile [ infile ]
-m int
order of coefficients \((0 \le M)\)
-p int
frame period \((1 \le P)\)
-i int
interpolation period \((0 \le I \le P/2)\)
-k
filtering without gain
kfile str
double-type PARCOR coefficients
infile str
double-type input sequence
stdout
double-type output sequence
In the below example, an excitaion signal generated from pitch information is reconstructed using the synthesis and analysis filters built from PARCOR coefficients.
excite < data.pitch | ltcdf data.rc | iltcdf data.rc > data.e
- Parameters:
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns:
0 on success, 1 on failure.
-
class AllZeroLatticeDigitalFilter
Apply all-zero lattice filter for speech synthesis.
Given the \(M\)-th order PARCOR coefficients,
\[ \begin{array}{cccc} K, & k(1), & \ldots, & k(M), \end{array} \]an output signal is obtained by applying the all-zero lattice filter to an input signal in time domain.Public Functions
-
explicit AllZeroLatticeDigitalFilter(int num_filter_order)
- Parameters:
num_filter_order – [in] Order of filter coefficients, \(M\).
-
inline int GetNumFilterOrder() const
- Returns:
Order of coefficients.
-
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, AllZeroLatticeDigitalFilter::Buffer *buffer) const
- Parameters:
filter_coefficients – [in] \(M\)-th order PARCOR 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, AllZeroLatticeDigitalFilter::Buffer *buffer) const
- Parameters:
filter_coefficients – [in] \(M\)-th order PARCOR coefficients.
input_and_output – [inout] Input/output signal.
buffer – [inout] Buffer.
- Returns:
True on success, false on failure.
-
class Buffer
Buffer for AllZeroLatticeDigitalFilter class.
-
explicit AllZeroLatticeDigitalFilter(int num_filter_order)