synthesis.m

来自「这是一个用于语音信号处理的工具箱」· M 代码 · 共 86 行

M
86
字号
% 
% Author: Albert Hsiao    2/97
% modified by D. G. Childers 1/98
%Changes to interface by Karthik 
%
if exist('Ff1')
   Fb = Fb1;
   Ff = Ff1;
end

if exist('excitation1')
   excitation = excitation1;
   Ncof = Ncof1;
   Pitch = Pitch1;
   if exist('Lcof1')
      Lcof = Lcof1;
   end
end


%If source and formant data do not exist, ask user to load them

if exist('excitation') == 0 | exist('Ff') == 0
   if exist('excitation') == 0
      %No excitation has been specified
      PV = [436 204 244 81];
      s2 = 'No excitation specified';
      message_fig = figure('Position',PV,...
         'Numbertitle','off',...
         'Color',[0.5 0.5 0.5],...
         'Name',s2);
      
      uicontrol('Style','Frame',...
         'Units','Normalized',...
         'Position',[0.05 0.05 0.9 0.9],...
         'BackGroundColor',[0.9 0.9 0.9]);
      
      uicontrol('Style','text',...
         'Units','Normalized',...
         'Position',[0.1 0.2 0.8 0.4],...
         'ForegroundColor','red',...
         'BackGroundColor',[0.9 0.9 0.9],...
         'String','No excitation specified.Please do so now');
      
      pause(3);
      close(message_fig);
      clear message_fig;
      source_main;
   else   %No formants specified
      PV = [436 204 244 81];
      s2 = 'No formants specified';
      message_fig = figure('Position',PV,...
         'Numbertitle','off',...
         'Color',[0.5 0.5 0.5],...
         'Name',s2);
      
      uicontrol('Style','Frame',...
         'Units','Normalized',...
         'Position',[0.05 0.05 0.9 0.9],...
         'BackGroundColor',[0.9 0.9 0.9]);
      
      uicontrol('Style','text',...
         'Units','Normalized',...
         'Position',[0.1 0.2 0.8 0.4],...
         'ForegroundColor','red',...
         'BackGroundColor',[0.9 0.9 0.9],...
         'String','No formants specified.Please do so now');
      pause(3);
      close(message_fig);
      clear message_fig;
      formant_main;
   end
end
if uvindicate == 0;
   synthesis_unvoiced_go;
else
   synthesis_go;
end

   





 

⌨️ 快捷键说明

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