spec2cep: Spectra to Cepstra Conversion

Description Usage Arguments Value Author(s) References See Also Examples

Description

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

Usage

1
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.

Author(s)

Sebastian Krey krey@statistik.tu-dortmund.de

References

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

See Also

lpc2cep

Examples

1
2
3
4
  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)

Example output

Warning message:
In normalize(sine(400) + sine(1000) + square(250), "16") :
  pcm set to TRUE since unit was one of 8, 16, or 24

tuneR documentation built on May 2, 2019, 6:15 p.m.

Related to spec2cep in tuneR...