📄 syn.m
字号:
% Script : create a Graphical User Interface for synthesis
% In this mfile, one figure 's_win_f' is created
%----------------------------------------------------------%
% create 'f_win_f' window for entering the file-name to %
% save for the synthesized speech %
%----------------------------------------------------------%
f_win_f=figure('Unit','normalized',...
'Position',[0.5 0.5 0.45 0.20],...
'Resize','on',...
'Color','white',...
'Visible','off',...
'Numbertitle','off',...
'Name','Save Speech');
sv_text=uicontrol('Style','text',...
'Unit','normalized',...
'Position',[.20 .83 .6 .1],...
'String','save as:',...
'BackGroundColor','White');
file_edit=uicontrol('Style','edit', ...
'String','xx.dat','Units','normalized','Position',[.2 .53 .6 .28]);
f_pb_app=uicontrol('Style','Pushbutton', ...
'String','Apply',...
'Units','normalized','Position',[.2 .1 .6 .28],...
'Callback', 'svsp;set(f_win_f,''Visible'',''off'');');
%----------------------------------------------------------%
% create 's_win_f' Graphical User Interface (main) %
%----------------------------------------------------------%
s_win_f=figure('Unit','normalized',...
'Position',[0.165 0.65 0.20 0.25],...
'Resize','on',...
'Color','white',...
'Numbertitle','off',...
'Name','Speech Synthesis');
s_pb_ld=uicontrol('Style','Pushbutton',...
'Units','normalized',...
'Position',[.1 .74 .8 .18],...
'String','Load analyzed file',...
'CallBack','ldata');
%callback function: [ldata.m]
s_pb_ex=uicontrol('Style','Pushbutton',...
'Units','normalized',...
'Position',[.1 .51 .8 .18],...
'String','Synthesize',...
'Callback','exe4;');
%callback function: [exe4.m]
s_pb_sv=uicontrol('Style','Pushbutton',...
'Units','normalized',...
'Position',[.1 .28 .8 .18],...
'Visible','off',...
'String','Save synthesized speech',...
'CallBack','figure(f_win_f);');
%callback function: [svsp.m]
return_pb=uicontrol('Style','Pushbutton',...
'Units','normalized',...
'Position',[.1 .05 .8 .18],...
'String','Return to main menu',...
'CallBack','close(s_win_f);figure(v_win_f);showoff(work_f);');
% creat work_f for message display
work_f=figure('Unit','normalized',...
'Position',[0.4 0.5 0.3 0.15],...
'Resize','off',...
'Visible','off',...
'Color','white',...
'Numbertitle','off',...
'Name','message');
work_text1=uicontrol('Style','text',...
'Units','normalized',...
'Position',[.1 .5 .9 .15],...
'String','',...
'BackGroundColor','white',...
'ForeGround',[0 0 1]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -