資源簡介
matlab 語音信號分幀函數 enframe.m 對語音信號進行分幀
代碼片段和文件信息
function?f=enframe(xwininc)
%ENframe?split?signal?up?into?(overlapping)?frames:?one?per?row.?F=(XWININC)
%
% F?=?ENframe(XLEN)?splits?the?vector?X(:)?up?into
% frames.?Each?frame?is?of?length?LEN?and?occupies
% one?row?of?the?output?matrix.?The?last?few?frames?of?X
% will?be?ignored?if?its?length?is?not?divisible?by?LEN.
% It?is?an?error?if?X?is?shorter?than?LEN.
%
% F?=?ENframe(XLENINC)?has?frames?beginning?at?increments?of?INC
% The?centre?of?frame?I?is?X((I-1)*INC+(LEN+1)/2)?for?I=12...
% The?number?of?frames?is?fix((length(X)-LEN+INC)/INC)
%
% F?=?ENframe(XWINDOW)?or?ENframe(XWINDOWINC)?multiplies
% each?frame?by?WINDOW(:)
% ???Copyright?(C)?Mike?Brookes?1997
%??????Version:?$Id:?enframe.mv?1.4?2006/06/22?19:07:50?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?u
評論
共有 條評論