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

📄 main.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                                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% title positiontitle_width1  = 200;%title_width  = 560;title_left   = (main_width-title_width)/2;%title_bottom = y_top_frame1+2*border; title_bottom = 200;title_height1 = 40;% Loading title image..pos = get(0,'ScreenSize');% colorsBg_Color 		= [0.7 0.7 0.8];Bg_Color1 		= [0.7 0.7 0.8];Frame_Color2	= [0.9 0.8 0.8];Frame_Color		= [0.8 0.8 0.9];Button_Color 	= [0.5 0.8 0.9];Bg_Color5 		= [0.5 0.8 0.8];Bg_Color4 		= [1 0.40 0.5];% main buttons sizebutton_width = 160; button_height = 40; main_width = 804;main_height = 488;%main_width = 1004;%main_height = 688;% borderborder = 10;frame_border = 5;% main frame sizex_bottom_frame1	= border;y_bottom_frame1	= border;x_top_frame1 	= main_width-2*border;y_top_frame1 	= main_height-7*border;% buttonsTop_Button 		= y_top_frame1-4*border;Delta_Button 	= 50;button_border 	= 20;button_left   = (((main_width-border)-button_width)/2);% colors% Loading title image..[rgb] = imread([pwd,'\bis.JPG']);% main windowhfig = 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');     Title = uicontrol(hfig,...	'style','text',...	'position',[title_left-50 title_bottom+400 title_width title_height],... % [from_left from_bottom width height]	'BackgroundColor',Bg_Color,...    'Fontweight','bold',...    'FontSize',10,...	'string',['SPEAKER RECOGNITION SYSTEM',' ']); Title = uicontrol(hfig,...	'style','text',...	'position',[title_left+145 title_bottom+200 title_width1+200 title_height1],... % [from_left from_bottom width height]	'BackgroundColor',Bg_Color1,...    'Fontweight','bold',...    'FontSize',10,...	'string',['MAIN',' ']);button1=uicontrol(hfig, ...	'style','push', ...	'position',[button_left-50 title_bottom+130 button_width button_height], ...      'BackgroundColor',Button_Color ,...	'string', 'Voice Test',...    'callback','voice_test');button2=uicontrol(hfig, ...	'style','push', ...	'position',[button_left-50 title_bottom+55 button_width button_height], ...     'BackgroundColor',Button_Color ,...	'string', 'Enrollment',...    'callback','enroll');button3=uicontrol(hfig, ...	'style','push', ...	'position',[button_left-50 title_bottom-20 button_width button_height], ...    'BackgroundColor',Button_Color ,...	'string', 'Exit',...    'callback','close'); Title = uicontrol(hfig,...	'style','text',...	'position',[title_left+325 title_bottom-20 title_width1+20 title_height1+150],... % [from_left from_bottom width height]	'BackgroundColor',Bg_Color5,...    'Fontweight','bold',...    'FontSize',10,...	'string',['Press  "Voice Test" to test a speaker.  Press  "Enrollment" to add a new speaker in the database.      (A window will be opened in each case.) ',' ']);

⌨️ 快捷键说明

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