Core SPTK API

All functionality in pysptk.sptk is directly accesible from the top-level pysptk.* namespace.

Note

Almost all of pysptk functions assume that the input array is C-contiguous and has float64 element type.

Library routines

agexp Magnitude squared generalized exponential function
gexp Generalized exponential function
glog Generalized logarithmic function
mseq M-sequence

Adaptive cepstrum analysis

acep Adaptive cepstral analysis
agcep Adaptive generalized cepstral analysis
amcep Adaptive mel-cepstral analysis

Mel-generalized cepstrum analysis

mcep Mel-cepstrum analysis
gcep Generalized-cepstrum analysis
mgcep Mel-generalized cepstrum analysis
uels Unbiased estimation of log spectrum
fftcep FFT-based cepstrum analysis
lpc Linear prediction analysis

MFCC

mfcc MFCC

LPC, LSP and PARCOR conversions

lpc2c LPC to cepstrum
lpc2lsp LPC to LSP
lpc2par LPC to PARCOR
par2lpc PARCOR to LPC
lsp2sp LSP to spectrum

Mel-generalized cepstrum conversions

mc2b Mel-cepsrum to MLSA filter coefficients
b2mc MLSA filter coefficients to mel-cesptrum
c2acr Cepstrum to autocorrelation
c2ir Cepstrum to impulse response
ic2ir Impulse response to cepstrum
c2ndps Cepstrum to Negative Derivative of Phase Spectrum (NDPS)
ndps2c Cepstrum to Negative Derivative of Phase Spectrum (NDPS)
gc2gc Generalized cepstrum transform
gnorm Gain normalization
ignorm Inverse gain normalization
freqt Frequency transform
mgc2mgc Mel-generalized cepstrum transform
mgc2sp Mel-generalized cepstrum transform
mgclsp2sp MGC-LSP to spectrum

F0 analysis

swipe SWIPE’ - A Saw-tooth Waveform Inspired Pitch Estimation

Window functions

blackman Blackman window
hamming Hamming window
hanning Hanning window
bartlett Bartlett window
trapezoid Trapezoid window
rectangular Rectangular window

Waveform generation filters

poledf All-pole digital filter
lmadf LMA digital filter
lspdf LSP synthesis digital filter
ltcdf All-pole lattice digital filter
glsadf GLSA digital filter
mlsadf MLSA digital filter
mglsadf MGLSA digital filter

Utilities for waveform generation filters

poledf_delay Delay for poledf
lmadf_delay Delay for lmadf
lspdf_delay Delay for lspdf
ltcdf_delay Delay for ltcdf
glsadf_delay Delay for glsadf
mlsadf_delay Delay for mlsadf
mglsadf_delay Delay for mglsadf

Other conversions

mgc2b(mgc[, alpha, gamma]) Mel-generalized cepstrum to MGLSA filter coefficients