spec2cep | R Documentation |
Calculate cepstra from spectral samples (in columns of spec) through Discrete Cosine Transformation.
spec2cep(spec, ncep = 12, type = c("t2", "t1", "t3", "t4"))
spec |
Input spectra (samples/time frames in columns). |
ncep |
Number of cepstra to return. |
type |
DCT Type. |
cep |
Matrix of resulting cepstra. |
dctm |
Returns the DCT matrix that spec was multiplied by to give cep. |
Sebastian Krey krey@statistik.tu-dortmund.de
Daniel P. W. Ellis: https://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/
lpc2cep
testsound <- normalize(sine(400) + sine(1000) + square(250), "16")
pspectrum <- powspec(testsound@left, testsound@samp.rate)
aspectrum <- audspec(pspectrum, testsound@samp.rate)
cepstra <- spec2cep(aspectrum$aspectrum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.