资源简介
用matlab实现语音识别的算法
用matlab实现语音识别的算法
用matlab实现语音识别的算法
代码片段和文件信息
%Speaker Identification Demo
%Amin Koohi(AminKoohi@yahoo.com OR AminSohrevardi@yahoo.com )
%
%Example:
% >> code = train(‘train\‘ 8); %(Training stage)
% >> test(‘test\‘ 8 code); %(Test)
clc
disp(‘ ‘);
disp(‘ ‘);
[s1 fs1] = wavread(‘amintrain\s2.wav‘);
[s2 fs2] = wavread(‘amintrain\s3.wav‘);
t = 0:1/fs1:(length(s1) - 1)/fs1;
plot(t s1) axis([0 (length(s1) - 1)/fs1 -0.4 0.5]);
title(‘Plot of signal s1.wav‘);
xlabel(‘Time [s]‘);
ylabel(‘Amplitude (normalized)‘)
pause
close all
M = 100;
N = 256;
frames = blockframes(s1 fs1 M N);
t = N / 2;
tm = length(s1) / fs1;
subplot(121);
imagesc([0 tm] [0 fs1/2] abs(frames(1:t :)).^2) axis xy;
title(‘Power Spectrum (M = 100 N = 256)‘);
xlabel(‘Time [s]‘);
ylabel(‘Frequency [Hz]‘);
colorba
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 75302 2005-07-19 19:30 speech recongition\amintest\s1.wav
文件 111550 2005-07-19 19:39 speech recongition\amintest\s2.wav
文件 99618 2005-07-19 19:42 speech recongition\amintest\s3.wav
..AD... 0 2008-04-05 09:38 speech recongition\amintest
文件 132358 2005-07-19 19:28 speech recongition\amintrain\s1.wav
文件 104806 2005-07-19 20:14 speech recongition\amintrain\s2.wav
文件 99838 2005-07-19 19:41 speech recongition\amintrain\s3.wav
..AD... 0 2008-04-05 09:38 speech recongition\amintrain
文件 1302 2006-03-25 18:26 speech recongition\blockfr
文件 3879 2008-03-15 17:21 speech recongition\demo.asv
文件 3649 2008-03-15 22:31 speech recongition\demo.m
文件 1801 2006-03-25 18:26 speech recongition\disteu.p
文件 1830 2006-09-26 18:03 speech recongition\enfr
文件 399 2008-03-29 11:20 speech recongition\explanation.txt
文件 18330 2006-06-14 09:10 speech recongition\gpl.txt
文件 128 2008-03-15 22:13 speech recongition\matlab.mat
文件 6067 2006-09-26 18:03 speech recongition\melbankm.p
文件 9311 2006-09-26 18:03 speech recongition\melcepst.p
文件 2712 2006-03-25 18:26 speech recongition\melfb.p
文件 2175 2006-03-25 18:26 speech recongition\mfcc.p
文件 20518 2006-09-23 18:23 speech recongition\MyWords\FELMALE1ONE1.wav
文件 25578 2006-09-23 18:20 speech recongition\MyWords\FEMALE1COMPUTER1.wav
文件 25578 2006-09-23 18:21 speech recongition\MyWords\FEMALE1COMUTER2.wav
文件 31518 2006-09-23 18:21 speech recongition\MyWords\FEMALE1DESKTOP1.wav
文件 22058 2006-09-23 18:21 speech recongition\MyWords\FEMALE1DESKTOP2.wav
文件 23378 2006-09-23 18:23 speech recongition\MyWords\FEMALE1ONE2.wav
文件 21178 2006-09-23 18:22 speech recongition\MyWords\FEMALE1ZERO1.wav
文件 20518 2006-09-23 18:22 speech recongition\MyWords\FEMALE1ZERO2.wav
文件 22938 2006-09-23 17:55 speech recongition\MyWords\MALE1COMPUTER.wav
文件 20518 2006-09-23 17:56 speech recongition\MyWords\MALE1COMPUTER1.wav
............此处省略58个文件信息
评论
共有 条评论