spec2cep

0th

Percentile

Spectra to Cepstra Conversion

Calculate cepstra from spectral samples (in columns of spec) through Discrete Cosine Transformation.

Usage
spec2cep(spec, ncep = 12, type = c("t2", "t1", "t3", "t4"))
Arguments
spec

Input spectra (samples/time frames in columns).

ncep

Number of cepstra to return.

type

DCT Type.

Value

cep

Matrix of resulting cepstra.

dctm

Returns the DCT matrix that spec was multiplied by to give cep.

References

Daniel P. W. Ellis: http://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/

See Also

lpc2cep

Aliases
  • spec2cep
Examples
# NOT RUN {
  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)
# }
Documentation reproduced from package tuneR, version 1.3.3, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.