High-level interface for waveform synthesis¶
Module pysptk.synthesis
provides high-leve interface that wraps low-level
SPTK waveform synthesis functions (e.g. mlsadf
),
Synthesis filter interface¶
Synthesizer¶
- class pysptk.synthesis.Synthesizer(filt, hopsize, transpose=False)[source]¶
Speech waveform synthesizer
- Attributes
- filtSynthesisFilter
A speech synthesis filter
- hopsizeint
Hop size
- transposebool
Transpose filter or not. Default is False.
SynthesisFilters¶
LMADF¶
- class pysptk.synthesis.LMADF(order=25, pd=4)[source]¶
LMA digital filter that wraps
lmadf
- Attributes
- pdint
Order of pade approximation. Default is 4.
- delayarray
Delay
MLSADF¶
- class pysptk.synthesis.MLSADF(order=25, alpha=0.35, pd=4)[source]¶
MLSA digital filter that wraps
mlsadf
- Attributes
- alphafloat
All-pass constant
- pdint
Order of pade approximation. Default is 4.
- delayarray
Delay
- filt(x, coef)[source]¶
Filter one sample using
mlsadf
- Parameters
- xfloat
A input sample
- coef: array
MLSA filter coefficients
- Returns
- yfloat
A filtered sample
See also
GLSADF¶
- class pysptk.synthesis.GLSADF(order=25, stage=1)[source]¶
GLSA digital filter that wraps
glsadf
- Attributes
- stageint
-1/gamma
- delayarray
Delay
- filt(x, coef)[source]¶
Filter one sample using
glsadf
- Parameters
- xfloat
A input sample
- coef: array
GLSA filter coefficients
- Returns
- yfloat
A filtered sample
See also
MGLSADF¶
- class pysptk.synthesis.MGLSADF(order=25, alpha=0.35, stage=1)[source]¶
MGLSA digital filter that wraps
mglsadf
- Attributes
- alphafloat
All-pass constant
- stageint
-1/gamma
- delayarray
Delay
- filt(x, coef)[source]¶
Filter one sample using
mglsadf
- Parameters
- xfloat
A input sample
- coef: array
MGLSA filter coefficients
- Returns
- yfloat
A filtered sample
See also
AllZeroDF¶
- class pysptk.synthesis.AllZeroDF(order=25)[source]¶
All-zero digital filter that wraps
zerodf
- Attributes
- delayarray
Delay
- filt(x, coef)[source]¶
Filter one sample using using
zerodf
- Parameters
- xfloat
A input sample
- coef: array
FIR parameters
- _
- yfloat
A filtered sample
See also
AllPoleDF¶
- class pysptk.synthesis.AllPoleDF(order=25)[source]¶
All-pole digital filter that wraps
poledf
- Attributes
- delayarray
Delay
- filt(x, coef)[source]¶
Filter one sample using using
poledf
- Parameters
- xfloat
A input sample
- coef: array
LPC (with loggain)
- Returns
- yfloat
A filtered sample
See also
AllPoleLatticeDF¶
- class pysptk.synthesis.AllPoleLatticeDF(order=25)[source]¶
All-pole lttice digital filter that wraps
ltcdf
- Attributes
- delayarray
Delay