⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 synthesis.m

📁 这是一个用于语音信号处理的工具箱
💻 M
字号:
% 
% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -