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

📄 dsp1.m

📁 this code is in Matlab.and this code od for Speaker recognitoin system.
💻 M
字号:

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

%         The First screen when program runs


pos = get(0,'ScreenSize');

% colors

Bg_Color 		= [0.7 0.7 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];

% main buttons size
button_width = 160; 
button_height = 40; 

% main window size


main_width = 1004;
main_height = 688;


% 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  = 560;
title_left   = (main_width-title_width)/2;
%title_bottom = y_top_frame1+2*border; 
title_bottom = 200;
title_height = 100;

[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');


image(rgb);
set(gca,'Position',[0.2 0.45 0.6 0.45]);
axis off;

set(hfig, 'Color', Bg_Color)

Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',20,...
	'string',['Speaker Recognition System' ...
						,' ']);
                
                Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom-50 title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',12,...
	'string',['by' ...
						,' ']);
Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom-100 title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',12,...
	'string',['Habib ur Rehman ' ...
						,' ']);
Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom-150 title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',12,...
	'string',['Abdul Basit ' ...
						,' ']);

BPshow_eigenface=uicontrol(hfig, ...
	'style','push', ...
	'position',[button_left-100 title_bottom-150 button_width button_height], ...
	'string', 'CONTINUE',...
    'callback','main');

BPshow_eigenface=uicontrol(hfig, ...
	'style','push', ...
	'position',[button_left+100 title_bottom-150 button_width button_height], ...
	'string', 'Exit',...
    'callback','close');

⌨️ 快捷键说明

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