demo2.m
来自「最全的ASR工具集合」· M 代码 · 共 24 行
M
24 行
disp('Mini-Projet: Automatic Speaker Recognition');
disp('By Christian Cornaz & Urs Hunkeler (SC)');
disp('Responsible Assistant: Vladan Velisavljevic');
disp(' ');
disp(' ');
[s1 fs1]=wavread('data\train\s1.wav');
[s2 fs2]=wavread('data\train\s2.wav');
%Question 2
disp('> Question 2');
t1 = 0:1/fs1:(length(s1) - 1)/fs1;
subplot(121);
plot(t1, s1), axis([0, (length(s1) - 1)/fs1 -0.4 0.5]);
title('Plot of signal s1.wav');
xlabel('Time [s]');
ylabel('Amplitude (normalized)')
t2=0:1/fs2:(length(s2)-1)/fs2;
subplot(122);
plot(t2,s2);axis([0,(length(s1)-1)/fs1 -0.4 0.5]);
title('plot of signal s2.wav');
pause
close all
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?