• 大小: 2.17MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-13
  • 语言: Matlab
  • 标签: 语音识别  

资源简介

将网上的一些DTW代码进行了整合。将其中的端点检测程序修改了一下。使其更加的能抵抗环境噪声。本程序能循环检测说话人的语音。

资源截图

代码片段和文件信息

% 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.3 2005/02/21 15:22:12 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.  See the 
%   GNU General Public License for more details. 

%   You can obtain a copy of the GNU General Public License from 
%   ftp://prep.ai.mit.edu/pub/gnu/COPYING-2.0 or by writing to 
%   Free Software Foundation Inc.675 Mass Ave Cambridge MA 02139 USA. 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
 
nx=length(x); 
nwin=length(win); 
if (nwin == 1) 
   len = win; 
else 
   len = nwin; 
end 
if (nargin < 3) 
   inc = len; 
end 
nf = fix((nx-len+inc)/inc); 
f=zeros(nflen); 
indf= inc*(0:(nf-1)).‘; 
inds = (1:len); 
f(:) = x(indf(:ones(1len))+inds(ones(nf1):)); 
if (nwin > 1) 
    w = win(:)‘; 
    f = f .* w(ones(nf1):); 
end 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1542  2009-08-27 00:20  myVoice\dtw.m

     文件        661  2015-03-13 20:11  myVoice\dtwtest.m

     文件       1021  2015-03-13 20:18  myVoice\main.m

     文件       1265  2009-08-27 00:02  myVoice\mfcc.m

     文件     219542  2015-03-13 20:10  myVoice\mfcc.mat

     文件        287  2015-03-13 19:52  myVoice\my_record.m

     文件      88244  2015-03-13 19:42  myVoice\my_test\01.wav

     文件      88244  2015-03-13 19:45  myVoice\my_test\11.wav

     文件      88244  2015-03-13 19:48  myVoice\my_test\21.wav

     文件      88244  2015-03-13 19:48  myVoice\my_test\31.wav

     文件      88244  2015-03-13 19:49  myVoice\my_test\41.wav

     文件      88244  2015-03-13 19:49  myVoice\my_test\51.wav

     文件      88244  2015-03-13 19:51  myVoice\my_test\61.wav

     文件      88244  2015-03-13 19:52  myVoice\my_test\71.wav

     文件      88244  2015-03-13 19:52  myVoice\my_test\81.wav

     文件      88244  2015-03-13 19:54  myVoice\my_test\91.wav

     文件      88244  2015-03-13 19:42  myVoice\my_train\00.wav

     文件      88244  2015-03-13 19:45  myVoice\my_train\10.wav

     文件      88244  2015-03-13 19:46  myVoice\my_train\20.wav

     文件      88244  2015-03-13 19:48  myVoice\my_train\30.wav

     文件      88244  2015-03-13 19:49  myVoice\my_train\40.wav

     文件      88244  2015-03-13 19:49  myVoice\my_train\50.wav

     文件      88244  2015-03-13 19:51  myVoice\my_train\60.wav

     文件      88244  2015-03-13 19:51  myVoice\my_train\70.wav

     文件      88244  2015-03-13 19:52  myVoice\my_train\80.wav

     文件      88244  2015-03-13 19:54  myVoice\my_train\90.wav

     文件      46906  2009-08-27 21:33  myVoice\test\01.wav

     文件      64570  2009-08-27 21:35  myVoice\test\11.wav

     文件      59962  2009-08-27 21:36  myVoice\test\21.wav

     文件      59194  2009-08-27 21:36  myVoice\test\31.wav

............此处省略30个文件信息

评论

共有 条评论