freqt
Functions
-
int main(int argc, char *argv[])
freqt [ option ] [ infile ]
-m int
order of minimum phase sequence
-M int
order of warped sequence
-a double
all-pass constant of input sequence
-A double
all-pass constant of output sequence
infile str
double-type minimum phase sequence
stdout
double-type warped sequence
The below example converts LPC coefficients into LPC mel-cepstral coefficients:
lpc2c < data.lpc | freqt -A 0.42 > data.lpcmc
The converted LPC mel-cepstral coefficients can be reverted if
is sufficiently greater than :freqt -A -0.42 < data.lpcmc > data.lpc
- Parameters:
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns:
0 on success, 1 on failure.
See also
-
class FrequencyTransform
Transform a minimum phase sequence into a frequency-warped sequence.
The input is the
-th order minimum phase sequence: -th order frequency-warped sequence: for any .The transformation is based on the cascade of all-pass networks. For more detail, see [1]. Note that the above recursion can be represented as a linear transformation, i.e., matrix multiplication.
[1] A. Oppenheim and D. Johnson, “Discrete representation of signals,” Proc. of the IEEE, vol. 60, no. 6, pp. 681-691, 1972.
[2] K. Tokuda, T. Kobayashi, T. Masuko, and S. Imai, “Mel-generalized cepstral representation of speech - A unified approach to speech spectral estimation,” Proc. of ICSLP 1994, pp. 1043-1046, 1994.
Public Functions
-
FrequencyTransform(int num_input_order, int num_output_order, double alpha)
- Parameters:
num_input_order – [in] Order of input,
.num_output_order – [in] Order of output,
.alpha – [in] Frequency warping factor,
.
-
inline int GetNumInputOrder() const
- Returns:
Order of input.
-
inline int GetNumOutputOrder() const
- Returns:
Order of output.
-
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> &minimum_phase_sequence, std::vector<double> *warped_sequence, FrequencyTransform::Buffer *buffer) const
- Parameters:
minimum_phase_sequence – [in]
-th order input sequence.warped_sequence – [out]
-th order output sequence.buffer – [out] Buffer.
- Returns:
True on success, false on failure.
-
class Buffer
Buffer for FrequencyTransform class.
-
FrequencyTransform(int num_input_order, int num_output_order, double alpha)