excite
Functions
-
int main(int argc, char *argv[])
excite [ option ] [ infile ]
-p int
frame_period \((1 \le P)\)
-i int
interpolation period \((0 \le I \le P/2)\)
-n int
noise type
0
none1
Gaussian2
M-sequence
-s int
seed for random number generation
infile str
double-type pitch period
stdout
double-type excitation
This command generates an excitation sequence from the pitch period in
infile
(or standard input), and sends the result to standard output. When the pitch period is nonzero, the excitation is to be a pulse train. When the pitch period is zero (i.e., unvoiced), the excitation is to be a Gaussian or M-sequence noise.In the example below, the excitation is generated from the
data.p
and passed through an LPC synthesis filter. The speech signal is written todata.syn
file.excite < data.p | poledf data.lpc > data.syn
- Parameters:
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns:
0 on success, 1 on failure.
-
class ExcitationGeneration
Generate exication sequence.
The input is a sequence of pitch value which can be either a continuous value or a magic number. The output is the excitation signal given the input sequence.
Public Functions
-
ExcitationGeneration(InputSourceInterpolationWithMagicNumber *input_source, RandomGenerationInterface *random_generation)
- Parameters:
input_source – [in] Input source.
random_generation – [in] Random value generator.
-
inline bool IsValid() const
- Returns:
True if this object is valid.
-
bool Get(double *excitation, double *pulse, double *noise, double *pitch)
Get excitation signal.
- Parameters:
excitation – [out] Excitation (optional).
pulse – [out] Pulse (optional).
noise – [out] Noise (optional).
pitch – [out] Pitch (optional).
- Returns:
True on success, false on failure.
-
ExcitationGeneration(InputSourceInterpolationWithMagicNumber *input_source, RandomGenerationInterface *random_generation)