资源简介
matlab语音信号处理工具箱语音信号处理工具箱语音信号处理工具箱语音信号处理工具箱语音信号处理工具箱语音信号处理工具箱,集成了语音信号处理所用到的函数
代码片段和文件信息
function [levaffso]=activlev(spfsmode)
%ACTIVLEV Measure active speech level as in ITU-T P.56 [LEVAFFSO]=(SPFSMODE)
%
%Inputs: SP is the speech signal (with better than 20dB SNR)
% FS is the sample frequency in Hz (see also FSO below)
% MODE is a combination of the following:
% r - raw omit input filters (default is 200 Hz to 5.5 kHz)
% 0 - no high pass filter (i.e. include DC)
% 4 - high pass filter at 40 Hz (but allows mains hum to pass)
% 1 - use cheybyshev 1 filter
% 2 - use chebyshev 2 filter (default)
% e - use elliptic filter
% h - omit low pass filter at 5.5 kHz
% d - give outputs in dB rather than power
%Outputs:
% LEV gives the speech level in units of power (or dB if mode=‘d‘)
% if mode=‘l‘ is specified LEV is a row vector with the “long term
% level“ as its second element (this is just the mean power)
% AF is the activity factor (or duty cycle) in the range 0 to 1
% FSO is a column vector of intermediate information that allows
% you to process a speech signal in chunks. Thus:
%
% fso=fs; for i=1:inc:nsamp [levfso]=activlev(sp(i:i+inc-1)fsomode); end
%
% is equivalent to: lev=activlev(sp(1:nsamp)fsmode)
%
% but is much slower. The two methods will not give identical results
% because they will use slightly different threshods.
%For completeness we list here the contents of the FSO structure:
%
% ffs : sample frequency
% fmd : mode string
% nh : hangover time in samples
% ae : smoothing filter coefs
% bl : 200Hz HP filter numerator
% al : 200Hz HP filter denominator
% bh : 5.5kHz LP filter numerator
% ah : 5.5kHz LP filter denominator
% ze : smoothing filter state
% zl : 200Hz HP filter state
% zh : 5.5kHz LP filter state
% zx : hangover max filter state
% emax : maximum envelope exponent + 1
% ssq : signal sum of squares
% ns : number of signal samples
% ss : sum of speech samples (not actually used here)
% kc : cumulative occupancy counts
% Copyright (C) Mike Brookes 2008
% Version: $Id: activlev.mv 1.7 2008/04/04 08:19:21 dmb Exp $
%
% VOICEBOX is a MATLAB toolbox for speech processing.
% Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10096 2008-04-04 09:19 voicebox\activlev.m
文件 1798 2007-11-23 19:47 voicebox\atan2sc.m
文件 1679 2007-05-04 08:01 voicebox\bark2frq.m
文件 3310 2007-05-04 08:01 voicebox\bitsprec.m
文件 2018 2007-05-04 08:01 voicebox\ccwarpf.m
文件 2136 2007-05-04 08:01 voicebox\cep2pow.m
文件 2244 2007-05-04 08:01 voicebox\choosenk.m
文件 1608 2007-05-04 08:01 voicebox\choosrnk.m
文件 8063 2008-09-24 12:14 voicebox\Contents.m
文件 3824 2007-05-04 08:01 voicebox\distchar.m
文件 3427 2007-05-04 08:01 voicebox\distchpf.m
文件 3629 2007-05-04 08:01 voicebox\disteusq.m
文件 4646 2007-05-04 08:01 voicebox\distisar.m
文件 3741 2007-05-04 08:01 voicebox\distispf.m
文件 4175 2007-05-04 08:01 voicebox\distitar.m
文件 3606 2007-05-04 08:01 voicebox\distitpf.m
文件 1987 2007-05-04 08:01 voicebox\ditherq.m
文件 2751 2007-05-04 08:01 voicebox\dlyapsq.m
文件 2483 2007-05-04 08:01 voicebox\dualdiag.m
文件 26180 2007-05-04 08:01 voicebox\dypsa.m
文件 2142 2009-02-28 10:20 voicebox\enfr
文件 3911 2007-05-04 08:01 voicebox\entropy.m
文件 2442 2007-05-04 08:01 voicebox\erb2frq.m
文件 15550 2008-05-22 18:17 voicebox\estnoisem.m
文件 2466 2007-05-04 08:01 voicebox\ewgrpdel.m
文件 2658 2008-03-26 10:30 voicebox\figbolden.m
文件 4207 2007-05-04 08:01 voicebox\findpeaks.m
文件 2429 2008-09-24 10:58 voicebox\finishat.m
文件 2488 2007-05-04 08:01 voicebox\frac2bin.m
文件 5264 2007-05-04 08:01 voicebox\fram2wav.m
............此处省略147个文件信息
- 上一篇:适合于强机动的Jerk模型代码
- 下一篇:随机路径生成函数matlab
评论
共有 条评论