📄 enroll.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Speaker Recognition System %% %% Project mmembers: (1) Habib ur Rehn=man %% (2) Abdul Basit % % Date: 12-05-2003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Enroll menu% title positiontitle_width1 = 200;title_left = (main_width-title_width)/2;title_bottom = 200;title_height1 = 40;% Loading title image..pos = get(0,'ScreenSize');% colorsBg_Color = [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.50.8 0.8];% main buttons sizebutton_width = 160; button_height = 40; main_width = 804;main_height = 488;% 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+140 title_bottom+200 title_width1+300 title_height1],... % [from_left from_bottom width height] 'BackgroundColor',Bg_Color,... 'Fontweight','bold',... 'FontSize',20,... 'string',['Enrollment',' ']); button1=uicontrol(hfig, ... 'style','text', ... 'position',[button_left-50 title_bottom+90 button_width button_height], ... 'string', 'File Name',... 'callback',''); button1=uicontrol(hfig, ... 'style','edit', ... 'position',[button_left-50 title_bottom+130 button_width button_height], ... 'string', 'C:\MATLAB6p1\work\project\test\s4.wav ',... 'callback','');button1=uicontrol(hfig, ... 'style','push', ... 'position',[button_left-50 title_bottom+60 button_width button_height], ... 'BackgroundColor',Button_Color ,... 'string', 'Record',... 'callback','add_2_database');button3=uicontrol(hfig, ... 'style','push', ... 'position',[button_left-50 title_bottom button_width button_height], ... 'BackgroundColor',Button_Color ,... 'string', 'Exit',... 'callback','close');Title = uicontrol(hfig,... 'style','text',... 'position',[title_left+340 title_bottom title_width1+100 title_height1+120],... % [from_left from_bottom width height] 'BackgroundColor',Bg_Color5,... 'Fontweight','bold',... 'FontSize',10,... 'string',['Press "Record" to record a speaker"s voice. Voice will be recorded for 3 seconds just after the press and automatically saved in the database file. ',' ']);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -