📄 loadfant.m
字号:
% loadfant.m
% created by D. G. Childers 8/19/98
% This file was created to display a message that the option
% to load the Fant Russian vowel area functions has been canceled.
% The reason for this is that it takes too long to synthesize
% a Russian vowel using the synthesis option, i.e., about 24 hours or more
% for a vowel using display option 3 in synthesis, which is the only display option
% that is appropriate.
% The display options 1 and 2 require a vector of articulatory position values (artset).
% This vector is obtained using the Shape and simulated annealing optimization
% procedures, which in turn minimize the error between the target formants
% and the model formants to calculate the vector
% of articulatory position parameters (artset) as well as the area and length
% for the articulatory model.
% However, for the Fant Russian vowel area data the optimization should be with
% respect to the area, not with respect to the target and model formants.
% So, originally, when the Fant Russian area functions were loaded, using loadfant_old.m,
% the shape and optimization options were turned off. The synthesis was
% then done using only display choice 3 in synthesis. Note that in this case
% under the synthesis option
% the animation option does not work for the Fant Russian areas because
% there is no vector of articulatory parameters (artset) available.
%
% Note the following: One could
% specify the target formant values along with the area function data.
% This data file could then be loaded and an optimization
% of the parameters could be done (using Shape and simulated annealing Optimization).
% However, the optimization would be done using the specifed target formants, not using the
% area function because that is the way the software is designed.
% So if one is going to do it this way
% one might just as well use a speech data file and calculate (specify) the target formants
% and procede using the formant data. This procedure is the procedure provided
% by the fm_load.m file.
%
% So for these reasons the original loadfant.m file was renamed to loadfant_old.m
% and this loadfant.m file was created. It was decided to give this message instead of
% deleting the option all together, since at some future point someone
% may want to reactivate the load Fant Russian vowel option.
% The file structure for the Fant Russian area functions is given in
% loadfant_old.m. The first four data values are
% totfno, tartime, tdur, nt1a. Then the area fucntion is given for 60
% data samples, then the vocal tract length is calculated using slen, etc.
% So if one wants to create such an area fucntion file using the Russian
% vowel area function data, be sure to follow this data structure.
% Some x.fan files that satisfy this data structure are in the data folder,
% e.g., russian_area_AA.fan (Russian vowel AA), area_mm.fan (an area function
% calculated for the nasal M), etc.
%
% In summary, the old loadfant.m file (now named loadfant_old.m) loads a
% data file with the vocal tract area function. No target formants are specified.
% The Shape and simulated annealing optimization options are turned off.
% Synthesis is done using only display choice 3 because it does not require
% the specification of a vector of optimized articulatory parameters (arset).
% However, this option takes about 24 hours to synthesize a simple vowel.
% The Shape and simulated annealing optimization options require the specification
% of the target formants. The vector of optimized articulatory parameters, and the
% vocal tract area and length is calculated as part of the model by minimizing the
% error between the target and model formants. So under this approach, the
% Russian area function data has no relevance and is not used by the software.
% Using the specification of the target formants approach, one can synthesize speech
% using any of the 3 display choices in the synthesis option.
%
% The following creates a message window telling
% the user that the loading of the Fant Russian vowel area fucntion
% option has been canceled. Read the comments above.
% D. G. Childers 8/18/98
% write message in command window
disp('The load option for the Fant Russian vowel area function has been canceled.');
disp('See the comments in the loadfant.m file.');
% create message window and write message in that window also
message_win4_f=figure('Unit','normalized',...
'Position',[0.05 0.2 0.9 0.2],...
'Resize','off',...
'Color',BACK_COLOR,...
'Numbertitle','off',...
'Name','Message');
axis('off');
ss=sprintf('The load option for the Fant Russian vowel area function has been canceled.');
text(-0.05,1,ss,'color',[0 0 1],'FontSize',10);
ss=sprintf('See the comments in the loadfant.m file or the README file.');
text(-0.05,5/6,ss,'color',[0 0 1],'FontSize',10);
ss=sprintf('You may now close this message window.');
text(-0.05,1/6,ss,'color',[0 0 1],'FontSize',10);
close(file_load_sv_win_h);
clear file_load_sv_win_h;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -