资源简介
这个是我参照网上的一些代码写的,可以训练和识别,但是没有做预处理,所以录音时要注意不要出现没声音的片段,识别率不是很高,可以做一下参考!
code=train('train\',4) %训练
test('test\',8,code) %识别
代码片段和文件信息
function y = cmvnpdf(X Mu Sigma)
%CMVNPDF - (Complex range) multivariate normal probability density function (pdf).
% Y = CMVNPDF(X) returns the n-by-1 vector Y containing the probability
% density of the multivariate normal distribution with zero mean and
% identity covariance matrix evaluated at each row of the n-by-d matrix
% X. Rows of X correspond to observations and columns correspond to
% variables or coordinates.
%
% Y = CMVNPDF(XMU) returns the density of the multivariate normal
% distribution with mean MU and identity covariance matrix evaluated
% at each row of X. MU is a 1-by-d vector or an n-by-d matrix in which
% case the density is evaluated for each row of X with the corresponding
% row of MU. MU can also be a scalar value which CMVNPDF replicates to
% match the size of X.
%
% Y = CMVNPDF(XMUSIGMA) returns the density of the multivariate normal
% distribution with mean MU and covariance SIGMA evaluated at each row
% of X. SIGMA is a d-by-d matrix or an d-by-d-by-n array in which case
% the density is evaluated for each row of X with the corresponding page
% of SIGMA i.e. CMVNPDF computes Y(I) using X(I:) and SIGMA(::I).
% Pass in the empty matrix for MU to use its default value when you want
% to only specify SIGMA.
%
% If X is a 1-by-d vector CMVNPDF replicates it to match the leading
% dimension of MU or the trailing dimension of SIGMA.
%
% Example:
%
% mu = [1 -1];
% Sigma = [.9 .4; .4 .3];
% X = mvnrnd(mu Sigma 10);
% p = cmvnpdf(X mu Sigma);
%
% See also MVNRND NORMPDF.
% Copyright 1993-2002 The MathWorks Inc.
% Revision: 1.2 Date: 2002/03/28 16:51:27
% Modified by Pekka Paalanen LUT 2003
%
%
% $Name: $
% $Revision: 1.1 $ $Date: 2004/08/16 15:06:44 $
if nargin < 1 | isempty(X)
error(‘Requires the input argument X.‘);
elseif ndims(X) > 2
error(‘X must be a matrix.‘);
end
% Get size of data. Column vectors provisionally interpreted as multiple scalar data.
[nd] = size(X);
% Assume zero mean data are already centered
if nargin < 2 | isempty(Mu)
X0 = X;
% Get scalar mean and use it to center data
elseif prod(size(Mu)) == 1
X0 = X - Mu;
% Get vector mean and use it to center data
elseif ndims(Mu) == 2
[n2d2] = size(Mu);
if d2 ~= d % has to have same number of coords as X
error(‘X and MU must have the same number of columns.‘);
elseif n2 == n % lengths match
X0 = X - Mu;
elseif n2 == 1 % mean is a single row rep it out to match data
X0 = X - repmat(Mun1);
elseif n == 1 % data is a single row rep it out to match mean
n = n2;
X0 = repmat(Xn21) - Mu;
else % sizes don‘t match
error(‘X or MU must be a row vector or X and MU must have the same number of rows.‘);
end
else
error(‘MU must be a matrix.‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-05-12 22:49 GMM模型建立和mfcc参数的取得方法\
文件 6613 2005-04-06 21:25 GMM模型建立和mfcc参数的取得方法\cmvnpdf.m
文件 3208 2005-04-06 21:18 GMM模型建立和mfcc参数的取得方法\covfixer2.m
文件 2147 2006-06-22 19:07 GMM模型建立和mfcc参数的取得方法\enfr
文件 1104 2005-06-02 16:10 GMM模型建立和mfcc参数的取得方法\estS_generate.m
文件 161 2009-07-24 11:31 GMM模型建立和mfcc参数的取得方法\gauss.m
文件 1099 2011-05-12 22:27 GMM模型建立和mfcc参数的取得方法\getargs.m
文件 858 2009-07-14 22:52 GMM模型建立和mfcc参数的取得方法\getmfcc.m
文件 5494 2009-09-07 15:05 GMM模型建立和mfcc参数的取得方法\gminitial.m
文件 879 2005-04-14 18:46 GMM模型建立和mfcc参数的取得方法\gmmb_cmeans.m
文件 5477 2011-05-12 22:20 GMM模型建立和mfcc参数的取得方法\gmmb_em.asv
文件 5493 2011-05-12 23:10 GMM模型建立和mfcc参数的取得方法\gmmb_em.m
文件 1132 2005-04-07 12:25 GMM模型建立和mfcc参数的取得方法\gmmb_em_init_cmeans1.m
文件 1221 2005-04-06 21:13 GMM模型建立和mfcc参数的取得方法\gmmb_em_init_fcm1.m
文件 5495 2009-08-07 00:56 GMM模型建立和mfcc参数的取得方法\gmminitial.m
文件 1227 2005-04-04 11:43 GMM模型建立和mfcc参数的取得方法\init_fcm1.m
文件 3549 2005-02-21 15:22 GMM模型建立和mfcc参数的取得方法\melbankm.m
目录 0 2011-05-12 23:15 GMM模型建立和mfcc参数的取得方法\test\
文件 1350 2011-05-12 23:14 GMM模型建立和mfcc参数的取得方法\test.m
文件 317398 2011-05-12 11:36 GMM模型建立和mfcc参数的取得方法\test\s1.wav
文件 375610 2011-05-11 23:06 GMM模型建立和mfcc参数的取得方法\test\s2.wav
文件 266242 2011-05-12 11:40 GMM模型建立和mfcc参数的取得方法\test\s3.wav
文件 266242 2011-05-12 23:02 GMM模型建立和mfcc参数的取得方法\test\s4.wav
文件 522022 2011-05-12 23:03 GMM模型建立和mfcc参数的取得方法\test\s5.wav
文件 248602 2011-05-12 23:05 GMM模型建立和mfcc参数的取得方法\test\s6.wav
文件 190390 2011-05-12 23:13 GMM模型建立和mfcc参数的取得方法\test\s7.wav
文件 271534 2011-05-12 23:15 GMM模型建立和mfcc参数的取得方法\test\s8.wav
目录 0 2011-05-12 23:14 GMM模型建立和mfcc参数的取得方法\train\
文件 1844 2011-05-12 22:30 GMM模型建立和mfcc参数的取得方法\train.asv
文件 1013 2011-05-12 22:50 GMM模型建立和mfcc参数的取得方法\train.m
文件 329746 2011-05-11 23:05 GMM模型建立和mfcc参数的取得方法\train\s1.wav
............此处省略4个文件信息
- 上一篇:Borland Turbo C++ 1.01
- 下一篇:C++反编译工具
评论
共有 条评论