📄 voice_test.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];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;% 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[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+150 title_bottom+200 title_width1+290 title_height1],... % [from_left from_bottom width height] 'BackgroundColor',Bg_Color,... 'Fontweight','bold',... 'FontSize',20,... 'string',['Voice Test',' ']);button1=uicontrol(hfig, ... 'style','push', ... 'position',[button_left-50 title_bottom+120 button_width button_height], ... 'BackgroundColor',Button_Color ,... 'string', 'Record',... 'callback','record');button2=uicontrol(hfig, ... 'style','push', ... 'position',[button_left-50 title_bottom+30 button_width button_height], ... 'BackgroundColor',Button_Color ,... 'string', 'Test',... 'callback','go');button4=uicontrol(hfig, ... 'style','push', ... 'position',[button_left-50 title_bottom-50 button_width button_height], ... 'BackgroundColor',Button_Color ,... 'string', 'Exit',... 'callback','close');Title = uicontrol(hfig,... 'style','text',... 'position',[title_left+340 title_bottom-10 title_width1+100 title_height1+160],... % [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 a temporary file. Process of recognition will start automatically ',' ']);Title = uicontrol(hfig,... 'style','text',... 'position',[title_left+340 title_bottom-60 title_width1+100 title_height1+10],... % [from_left from_bottom width height] 'BackgroundColor',Bg_Color4,... 'Fontweight','bold',... 'FontSize',10,... 'string',['Press "Test" to recognize the previous speaker ',' ']);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -