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: - filt : SynthesisFilter
A speech synthesis filter
- hopsize : int
Hop size
- transpose : bool
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: - pd : int
Order of pade approximation. Default is 4.
- delay : array
Delay
MLSADF¶
-
class
pysptk.synthesis.
MLSADF
(order=25, alpha=0.35, pd=4)[source]¶ MLSA digital filter that wraps
mlsadf
Attributes: - alpha : float
All-pass constant
- pd : int
Order of pade approximation. Default is 4.
- delay : array
Delay
-
filt
(self, x, coef)[source]¶ Filter one sample using
mlsadf
Parameters: - x : float
A input sample
- coef: array
MLSA filter coefficients
Returns: - y : float
A filtered sample
See also
GLSADF¶
-
class
pysptk.synthesis.
GLSADF
(order=25, stage=1)[source]¶ GLSA digital filter that wraps
glsadf
Attributes: - stage : int
-1/gamma
- delay : array
Delay
-
filt
(self, x, coef)[source]¶ Filter one sample using
glsadf
Parameters: - x : float
A input sample
- coef: array
GLSA filter coefficients
Returns: - y : float
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: - alpha : float
All-pass constant
- stage : int
-1/gamma
- delay : array
Delay
-
filt
(self, x, coef)[source]¶ Filter one sample using
mglsadf
Parameters: - x : float
A input sample
- coef: array
MGLSA filter coefficients
Returns: - y : float
A filtered sample
See also
AllZeroDF¶
-
class
pysptk.synthesis.
AllZeroDF
(order=25)[source]¶ All-zero digital filter that wraps
zerodf
Attributes: - delay : array
Delay
-
filt
(self, x, coef)[source]¶ Filter one sample using using
zerodf
Parameters: - x : float
A input sample
- coef: array
FIR parameters
- _
- y : float
A filtered sample
AllPoleDF¶
-
class
pysptk.synthesis.
AllPoleDF
(order=25)[source]¶ All-pole digital filter that wraps
poledf
Attributes: - delay : array
Delay
-
filt
(self, x, coef)[source]¶ Filter one sample using using
poledf
Parameters: - x : float
A input sample
- coef: array
LPC (with loggain)
Returns: - y : float
A filtered sample
See also
AllPoleLatticeDF¶
-
class
pysptk.synthesis.
AllPoleLatticeDF
(order=25)[source]¶ All-pole lttice digital filter that wraps
ltcdf
Attributes: - delay : array
Delay