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

笔者使用的是R2019的matlab,下载了voicebox安装至matlab路径下即可使用。下载voicebox请参看此博客

需要注意的是,melbankm改成了v_melbankm,今天自己使用此函数时后面几个参数不知道含义,翻了源文件看看,比较懒,没翻译成中文。看到一篇更好的解释和与v_melcepst的比较博客请戳这里

函数解释

v_melbankm determine matrix for a mel/erb/bark-spaced v_filterbank [X,MN,MX]=(P,N,FS,FL,FH,W)

Inputs:

p number of filters in v_filterbank or the filter spacing in k-mel/bark/erb [ceil(4.6*log10(fs))]

n length of fft

fs sample rate in Hz

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:

‘b’ = bark scale instead of mel

‘e’ = erb-rate scale

‘l’ = log10 Hz frequency scale

‘f’ = linear frequency scale

‘c’ = fl/fh specify centre of low and high filters

‘h’ = fl/fh are in Hz instead of fractions of fs

‘H’ = fl/fh are in mel/erb/bark/log10

‘t’ = triangular shaped filters in mel/erb/bark domain (default)

‘n’ = hanning shaped filters in mel/erb/bark domain

‘m’ = hamming shaped filters in mel/erb/bark domain

‘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

‘u’ = scale filters to sum to unity

‘s’ = single-sided: do not double filters to account for negative frequencies

‘g’ = plot idealized filters [default if no output arguments present]

Note that the filter shape (triangular, hamming etc) is defined in the mel (or erb etc) domain.

Some people instead define an asymmetric triangular filter in the frequency domain.

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

Outputs:

x a sparse matrix containing the v_filterbank amplitudes

If the mn and mx outputs are given then size(x)=[p,mx-mn+1]

otherwise size(x)=[p,1+floor(n/2)]

Note that the peak filter values equal 2 to account for the power

in the negative FFT frequencies.

mc the v_filterbank centre frequencies in mel/erb/bark

mn the lowest fft bin with a non-zero coefficient

mx the highest fft bin with a non-zero coefficient

Note: you must specify both or neither of mn and mx.

Examples of use:

(a) Calcuate the Mel-frequency Cepstral Coefficients

f=v_rfft(s); % v_rfft() returns only 1+floor(n/2) coefficients

x=v_melbankm(p,n,fs); % n is the fft length, p is the number of filters wanted

z=log(x*abs(f).^2); % multiply x by the power spectrum

c=dct(z); % take the DCT

(b) Calcuate the Mel-frequency Cepstral Coefficients efficiently

f=fft(s); % n is the fft length, p is the number of filters wanted

[x,mc,na,nb]=v_melbankm(p,n,fs); % na:nb gives the fft bins that are needed

z=log(x*(f(na:nb)).*conj(f(na:nb)));

© Plot the calculated filterbanks

plot((0:floor(n/2))*fs/n,melbankm(p,n,fs)') % fs=sample frequency

(d) Plot the idealized filterbanks (without output sampling)

v_melbankm(p,n,fs);

References:

[1] S. S. Stevens, J. Volkman, and E. B. Newman. A scale for the measurement

of the psychological magnitude of pitch. J. Acoust Soc Amer, 8: 185-19, 1937.

[2] S. Davis and P. Mermelstein. Comparison of parametric representations for

monosyllabic word recognition in continuously spoken sentences.

IEEE Trans Acoustics Speech and Signal Processing, 28 (4): 357-366, Aug. 1980.

matlab melbankm,Matlab v_melbankm函数参数详解(英文附例)相关推荐

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

    Matlab v_melcepst函数参数详解(英文附例) 笔者使用的是R2019的matlab,下载了voicebox安装至matlab路径下即可使用.下载voicebox请参看此博客 需要注意的是 ...

  2. Matlab mfcc函数参数详解(英文附例)

    Matlab mfcc函数参数详解 其实可以直接打开源代码看哈. %MFCC Extract the mfcc, log-energy, delta, and delta-delta of audio ...

  3. MATLAB调用refprop计算物性参数详解

    MATLAB调用refprop计算物性参数详解 欢迎使用Markdown编辑器 欢迎使用Markdown编辑器 REFPROP(REference Fluid PROPerties)是一款国际权威工质 ...

  4. matlab对图像操作函数的详解(笔记1)

    matlab对图像操作函数的详解 一. 读写图像文件 1. imread imread函数用于读入各种图像文件,如:a=imread('e:\w01.tif') 注:计算机E盘上要有w01相应的.ti ...

  5. PHP date函数参数详解

    PHP date函数参数详解 作者: 字体:[增加 减小] 类型:转载 time()在PHP中是得到一个数字,这个数字表示从1970-01-01到现在共走了多少秒,很奇怪吧  不过这样方便计算, 要找 ...

  6. java调用js匿名函数参数,js匿名函数作为函数参数详解

    由衷的感叹,js真是烦. 学到现在,渐渐理解了什么是:语言都是通用的,没有好不好,只有擅长不擅长. 继承,多态,甚至指针,c能实现,c++,java有,javascript(和java是雷锋和雷峰塔的 ...

  7. ioctl 函数 参数 详解

    2019独角兽企业重金招聘Python工程师标准>>> ioctl 函数 参数 详解 2009-04-24 11:55 ioctl函数 本函数影响由fd参数引用的一个打开的文件. # ...

  8. 定义一个没有参数的函数、输出python3次_Python函数参数详解,三天让你掌握python,不再是小白

    原标题:Python函数参数详解,三天让你掌握python,不再是小白 引言 随着程序功能的增多,代码量随之增大,此时仍不加区分地把所有功能的实现代码放到一起,将会使得程序的组织结构不清晰,可读性变差 ...

  9. python传入参数加星号_Python 带星号(* 或 **)的函数参数详解

    1. 带默认值的参数 在了解带星号(*)的参数之前,先看下带有默认值的参数,函数定义如下: >> def defaultValueArgs(common, defaultStr = &qu ...

最新文章

  1. 2月中国域名总量平稳回升 净增长量逾10.3万个
  2. Windows Phone 7 不温不火学习之《画图》
  3. python 一次编辑
  4. ln -s命令 linux,Linux下 ln -s 软链接用法
  5. arm ubuntu 编译boost_使用yocto工具编译qt5.9.6总结
  6. 读完这个我懂了JNDI
  7. zabbix自动发现端口
  8. python网络编程学习笔记(5):socket的一些补充
  9. Python爬虫案例——漫画网站爬取图片(模拟浏览器解析网页)
  10. HttpGet请求数据乱码的原因
  11. Android模仿新浪微博(前言)
  12. 台式计算机调亮度快捷键,台式电脑怎么调节屏幕亮度
  13. Python-数据处理
  14. ping检测整个网段地址在线
  15. 智能电视是否是一台计算机,误区四 智能电视代替电脑使用_平板电视_液晶电视评测-中关村在线...
  16. Java中文生僻字排序
  17. linux 脚本usleep,Linux的sleep()和usleep()的使用
  18. 什么样的企业/单位需要圣天诺LDK?
  19. 8个指标深度分析中国心理学预印本平台
  20. 2018 “百度之星”程序设计大赛 - 初赛(B)Pro.1001 degree

热门文章

  1. vivado顶层模块怎么建_【第2040期】Node 模块化之争:为什么 CommonJS 和 ES Modules 无法相互协调...
  2. 查找服务器大文件内容,Linux查找大文件命令,springmvc基础面试题
  3. java 反射调用方法_java的反射机制,以及通过反射获取方法,变量等操作
  4. 它利用计算机和现代通信技术,现代通信技术复习概论
  5. 计算机里什么文件无法删除,电脑上的文件删不掉怎么办
  6. sql 两表数据合并_多表查询SQL语句
  7. 哈维玛德学院 计算机,哈维玛德学院优势多多,令人神往!
  8. 我的python 入门 安装 -- hello world
  9. linux+mysql+导出备份_Linux系统MySQL备份的导入导出的具体分析
  10. Linux(Ubuntu)设置系统时区