📄 main.m
字号:
%主界面
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
close all;
clear;
clc;
%下面是路径声明
path(path,'.\yuchuli');
path(path,'.\canshufenxi');
path(path,'.\xianshi');
path(path,'.\luyin');
path(path,'.\DTW');
path(path,'.\HMM');
path(path,'.\VQ');
path(path,'.\vocal_fold');
path(path,'.\vocos');
check = 1; %Variable used for proper closing and opening of windows
catch2 = 'check = 0;';
catch1 = 'break;';
%color_flag=0; % Black background and white text
color_flag=1; % White background and black text
global BACK_COLOR TEXT_COLOR;
if color_flag == 1
BACK_COLOR=[1 1 1];
TEXT_COLOR=[0 0 0];
else
BACK_COLOR=[0 0 0];
TEXT_COLOR=[1 1 1];
end
% Define some character strings
o_fname='';
o_pname='';
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set position and size of analysis window
PV=[235 180 664 463];
s2 = '语音处理平台V1.0';
% Open analysis window
while exist('m_gui_win_h')==1
try1 = 'get(m_gui_win_h,''position'');';
eval(try1,catch2);
if check ==0
clear m_gui_win_h;
check = 1;
break;
end
s1 = get(m_gui_win_h,'Name');
if ~strcmp(s1,s2)
clear m_gui_win_h;
break;
end
figure(m_gui_win_h);
break;
end;
if exist('m_gui_win_h')~=1;
m_gui_win_h=figure('Position',PV,...
'Resize','off',...
'Numbertitle','off',...%'color',BACK_COLOR,...
'Name',s2);
set(m_gui_win_h,'MenuBar','none');
m_gui_f1=uicontrol('Style','frame',...
'Position',[5 5 180 455],...
'Callback',[]);
m_gui_f2=uicontrol('Style','frame',...
'Position',[190 5 470 455],...
'Callback',[]);
m_gui_tex=uicontrol('Style','text',...
'Position',[230 10 360 270],...
'String','语音处理平台V1.0 ',...
'FontSize',20.,...
'Callback',[]);
m_gui_pb_luyin_h=uicontrol('Style','pushbutton',...
'Position',[10 420 165 30],...
'FontSize',10.0,...
'String','录音',...
'Callback','luyin_path');
m_gui_pb_displays_h=uicontrol('Style','pushbutton',...
'Position',[10 380 165 30],...
'FontSize',10.0,...
'String','信号观测',...
'Callback','xianshi_path');
m_gui_pb_analysis_h=uicontrol('Style','pushbutton',...
'Position',[10 340 165 30],...
'FontSize',10.0,...
'String','预处理',...
'Callback','yuchuli_path');
m_gui_pb_speechegg_h=uicontrol('Style','pushbutton',...
'Position',[10 300 165 30],...
'FontSize',10.0,...
'String','参数分析 ',...
'Callback','canshufenxi_path');
m_gui_pb_formant_h=uicontrol('Style','pushbutton',...
'Position',[10 140 165 30],...
'FontSize',10.0,...
'String','VQ说话人识别',...
'Callback','VQ_path');
m_gui_pb_vocos_h=uicontrol('Style','pushbutton',...
'Position',[10 180 165 30],...
'FontSize',10.0,...
'String','语音编码',...
'Callback','code_path');
m_gui_pb_time_h=uicontrol('Style','pushbutton',...
'Position',[10 260 165 30],...
'FontSize',10.0,...
'String','语音增强',...
'Callback','zengqiang_path');
m_gui_pb_vocalfold_h=uicontrol('Style','pushbutton',...
'Position',[10 220 165 30],...
'FontSize',10.0,...
'String','语音合成',...
'Callback',[]);
m_gui_pb_formanttrk_h=uicontrol('Style','pushbutton',...
'Position',[10 100 165 30],...
'FontSize',10.0,...
'String','HMM孤立字识别',...
'Callback','HMM_path');
m_gui_pb_artm_h=uicontrol('Style','pushbutton',...
'Position',[10 60 165 30],...
'FontSize',10.0,...
'String','DTW立孤立字识别',...
'Callback','DTW_path');
m_gui_pb_cancel_h=uicontrol('Style','pushbutton',...
'Position',[10 20 165 30],...
'FontSize',10.0,...
'String','退出',...
'Callback','close_main_speechgui');
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -