⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mark_recog.m

📁 语音信号端点检测方面的源程序
💻 M
字号:
button = questdlg('准备录音?', ...
                            '语音识别','录音','识别','录音');
switch button
    case '录音'
        x=wavread('D:\matlab701\work\sound\su8.wav');
        [x1 x2]=vad(x);
        plot(x(x1*80:x2*80+176,:));
        save ;
    case '识别'
        load hmm;
%        load x;
        m = mfcc(x);
	m = m(x1-2:x2-2,:);
	for j=1:10
		pout(j) = viterbi(hmm{j}, m);
	end
	[d,n] = max(pout);
	fprintf('这个词的识别结果为:%d\n',n)
    save
end

%pos = [10 10 100 10];
%h = uicontrol('Style','Text','Position',pos);
%string = {'This is a string for the uicontrol.',
%          'It should be correctly wrapped inside.'};
%[outstring,newpos] = textwrap(h,string);
%pos(4) = newpos(4);
%set(h,'String',outstring,'Position',[pos(1),pos(2),pos(3)+10,pos(4)])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -