syndraw.m

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

M
88
字号
% syndraw.m

%figure(syn_win1_h);
%close all
%clear all
%figure(15)
%speechsg=[0;0.003];
%s1=min(speechsg);
%s2=max(speechsg);
%close(syn_win1_h);
figure(syn_win1_h);
%title('Synthetic Speech','color',TEXT_COLOR,'FontSize',10);
axis('off');
axis([0 400 -syndpymax syndpymax]);
ss=sprintf('Synthetic Speech');
text(160,1.1*syndpymax,ss,'color',TEXT_COLOR,'FontSize',10);
%axis([0 1000 -2*smpfrq 2*smpfrq]);
body=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
%speechsg=[0.0;0.003;0.5];
set(body,'xdata',plotindex:plotindex+1,'ydata',-speechsg((currcycle-1)*400+plotindex:(currcycle-1)*400+plotindex+1));
%	subplot(3,3,5)
%    	set(body1,'xdata',i1:i1+1,'ydata',presdpy(i1:i1+1,1));
drawnow

if dpychoice==3,
syndpy03;
elseif dpychoice==2
figure(syn_win2_h);
subplot(3,3,1)
axis('off');
axis([0 Nrepeat+1 0 1000]);
title('Tongue body x','color',TEXT_COLOR,'FontSize',10);
body1=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body1,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,1));
subplot(3,3,2)
axis('off');
axis([0 Nrepeat+1 0 1000]);
title('Tongue body y','color',TEXT_COLOR,'FontSize',10);
body2=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body2,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,2));
subplot(3,3,3)
axis('off');
axis([0 Nrepeat+1 0 1000]);
title('Tongue tip x','color',TEXT_COLOR,'FontSize',10);
body3=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body3,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,3));
subplot(3,3,4)
axis('off');
axis([0 Nrepeat+1 0 1000]);
title('Tongue tip y','color',TEXT_COLOR,'FontSize',10);
body4=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body4,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,4));
subplot(3,3,5)
axis('off');
axis([0 Nrepeat+1 0 1000]);
title('Lip protrusion','color',TEXT_COLOR,'FontSize',10);
body5=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body5,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,5));
subplot(3,3,6)
axis('off');
axis([0 Nrepeat+1 0 1000]);
title('Lip opening','color',TEXT_COLOR,'FontSize',10);
body6=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body6,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,6));
subplot(3,3,7)
axis('off');
axis([0 Nrepeat+1 0 800]);
title('Jaw angle','color',TEXT_COLOR,'FontSize',10);
body7=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body7,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,7));
subplot(3,3,8)
axis('off');
axis([0 Nrepeat+1 0 519]);
title('Velum angle','color',TEXT_COLOR,'FontSize',10);
body8=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body8,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,8));
subplot(3,3,9)
axis('off');
axis([0 Nrepeat+1 0 1000]);
title('Hyoid','color',TEXT_COLOR,'FontSize',10);
body9=line('color',TEXT_COLOR,'linestyle','-','erase','none','xdata',[],'ydata',[]);
set(body9,'xdata',i1:i1+1,'ydata',artidpy(i1:i1+1,9));
drawnow
%elseif dpychoice==1
%[err_erg5]=sagidpy(artset(vfno,1:9),artset(vfno,10),artset(vfno,11),artset(vfno%,12),vfno,form_tar(vfno,:),syn_win2_h)
end

⌨️ 快捷键说明

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