Internal soundgen function
getMelSpec(
s,
samplingRate = NULL,
windowLength = 40,
overlap = 50,
step = NULL,
dynamicRange = 80,
maxFreq = NULL,
plot = FALSE
)
input sound (path to a .wav file or numeric vector)
sampling rate of target
(only needed if target is
a numeric vector, rather than a .wav file)
length of FFT window, ms
overlap between successive FFT frames, %
you can override overlap
by specifying FFT step, ms
parts of the spectra quieter than -dynamicRange
dB
are not compared
parts of the spectra above maxFreq
Hz are not compared
if TRUE, plots the spectrum
Takes a .wav file or a waveform as numeric vector + samplingRate and returns
mel-transformed spectrum (auditory spectrum). Calls
melfcc
. See matchPars
.