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

📄 dis_play.m

📁 this code is in Matlab.and this code od for Speaker recognitoin system.
💻 M
字号:
function dis_play(k,dis)

%          : Look up table : To display the name of mached speaker 
%  k      : Speaker Id%  n       
%  dis    : minimum distance of  sepstrums of speaker to be recognized among the coodbook of all the registered speakers


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   Speaker Recognition System                        %
%                                                     %
%   Project mmembers: (1)  Habib ur Rehn=man          %
%                     (2)  Abdul Basit                %   
%   Date:   12-05-2003                                %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



if dis <12
    if k==1;
msg=sprintf('Speaker  best matches with  Azka');

elseif  k==2;
    msg=sprintf('Speaker  best matches with  Talha');
   
     elseif    k==3;
    msg=sprintf('Speaker  best matches with  Waheed');
   
  elseif  k==4;
      msg=sprintf('Speaker  best matches with  Basit');
      
  elseif     k==5;
   
     msg=sprintf('Speaker best matches with  Rehman');
     
  end
        else
       msg=sprintf('Match Not name found');
   end 
  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     GUI   to display msg             %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%get screen size

pos = get(0,'ScreenSize');

% colors

Bg_Color 		= [0.7 0.7 0.8];

Bg_Color1 		= [0.8 0.8 0.8];
Frame_Color2	= [0.9 0.8 0.8];
Frame_Color		= [0.8 0.8 0.9];
Button_Color1 	= [0.7 0.7 0.7];
Bg_Color4 		= [1 0.40 0.5];
% main buttons size
button_width = 150; 
button_height = 40; 




main_width = 1004;
main_height = 688;

main_width = 804;
main_height = 488;


% border
border = 10;
frame_border = 5;

% main frame size
x_bottom_frame1	= border;
y_bottom_frame1	= border;
x_top_frame1 	= main_width-2*border;
y_top_frame1 	= main_height-7*border;

% buttons
Top_Button 		= y_top_frame1-4*border;
Delta_Button 	= 50;
button_border 	= 20;
button_left   = ((main_width-border)-button_width)/2;


% title position
title_width  = 660;
title_left   = (main_width-title_width)/2;
%title_bottom = y_top_frame1+2*border; 
title_bottom = 200;
title_height = 50;



% Loading title image..

[rgb] = imread([pwd,'\bis.JPG']);

% main window
hfig = figure('Name','Speaker  Recognition System ',...
	'NumberTitle','off',...
	'Resize','off',...
	'Visible','on',...
	'Position',[pos(3)/2-main_width/2 pos(4)/2-main_height/2-5 main_width main_height+20],...
   'MenuBar','none');


button2=uicontrol(hfig, ...
	'style','push', ...
	'position',[button_left title_bottom-100 button_width button_height], ...
	'string', 'EXIT',...
    'callback','close');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%           Blink the message thrice     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for i=1:3
Title1 = uicontrol(hfig,...
	'style','text',...
	'position',[title_left+50 title_bottom+50 title_width-200 title_height+50],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color4,...
    'Fontweight','bold',...
    'FontSize',20,...
	'string',[msg,' ']);
pause(0.8)

Title1 = uicontrol(hfig,...
	'style','text',...
	'position',[title_left+50 title_bottom+50 title_width-200 title_height+50],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color1,...
    'Fontweight','bold',...
    'FontSize',20,...
	'string',[,' ']);
pause(0.8)
Title1 = uicontrol(hfig,...
	'style','text',...
	'position',[title_left+50 title_bottom+50 title_width-200 title_height+50],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color4,...
    'Fontweight','bold',...
    'FontSize',20,...
'string',[msg,' ']);

end

⌨️ 快捷键说明

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