Matlab v_melcepst函数参数详解(英文附例)

Matlab v_melcepst函数参数详解(英文附例)

笔者使用的是R2019的matlab,下载了voicebox安装至matlab路径下即可使用。下载voicebox请参看此博客
需要注意的是,melcepst改成了v_melcepst,这与上篇中提到过v_melbankm功能相似。看到一篇更好的解释和与v_melbankm的比较博客请戳这里

函数解释

v_melcepst Calculate the mel cepstrum(倒谱) of a signal [c,tc]=melcepst(s,fs,w,nc,p,n,inc,fl,fh).

Simple use:
(1)

c=v_melcepst(s,fs)          % calculate mel cepstrum with 12 coefs, 256 sample frames

(2)

c=v_melcepst(s,fs,'E0dD')   % include log energy, 0th cepstral coef, delta and delta-delta coefs

Inputs:

s speech signal
fs sample rate in Hz (default 11025)
w mode string (see below)
nc number of cepstral coefficients excluding 0’th coefficient [default 12]
p number of filters in v_filterbank [default: floor(3*log(fs)) = approx 2.1 per ocatave]
n length of frame in samples [default power of 2 < (0.03*fs)]
inc frame increment [default n/2]
fl low end of the lowest filter as a fraction of fs [default = 0]
fh high end of highest filter as a fraction of fs [default = 0.5]
w any sensible combination of the following:
‘R’ rectangular window in time domain
‘N’ Hanning window in time domain
‘M’ Hamming window in time domain (default)
‘t’ triangular shaped filters in mel domain (default)
‘n’ hanning shaped filters in mel domain
‘m’ hamming shaped filters in mel domain
‘p’ filters act in the power domain
‘a’ filters act in the absolute magnitude domain (default)
‘0’ include 0’th order cepstral coefficient
‘E’ include log energy
‘d’ include delta coefficients (dc/dt)
‘D’ include delta-delta coefficients (d2c/dt2)
‘z’ highest and lowest filters taper down to zero (default)
‘y’ lowest filter remains at 1 down to 0 frequency and highest filter remains at 1 up to nyquist freqency

If ‘ty’ or ‘ny’ is specified, the total power in the fft is preserved.

Outputs:

c mel cepstrum output: one frame per row. Log energy, if requested, is the first element of each row followed by the delta and then the delta-delta coefficients.

tc fractional time in samples at the centre of each frame with the first sample being 1.

发布了6 篇原创文章 · 获赞 5 · 访问量 352

猜你喜欢

转载自blog.csdn.net/weixin_46422143/article/details/105161458