Festival Speech Synthesis System: - Speech Resource Pages
Festival Speech Synthesis System: - Speech Resource Pages
Festival Speech Synthesis System: - Speech Resource Pages
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
(define (targ_func1 utt syl)<br />
"(targ_func1 UTT STREAMITEM)<br />
Returns a list of targets for the given syllable."<br />
(let ((start (item.feat syl 'syllable_start))<br />
(end (item.feat syl 'syllable_end)))<br />
(if (equal? (item.feat syl "R:Intonation.daughter1.name") "Accented")<br />
(list<br />
(list start 110)<br />
(list (/ (+ start end) 2.0) 140)<br />
(list end 100)))))<br />
This function may be identified as the function to call by the following setup parameters.<br />
(Parameter.set 'Int_Method 'General)<br />
(Parameter.set 'Int_Target_Method Int_Targets_General)<br />
(set! int_general_params<br />
(list<br />
(list 'targ_func targ_func1)))<br />
[ < ] [ > ] [ > ] [Top] [Contents] [Index] [ ? ]<br />
18.6 Using ToBI<br />
An example implementation of a ToBI to F0 target module is included in `lib/tobi_rules.scm' based on the<br />
rules described in jilka96. This uses the general intonation method discussed in the previous section. This is designed<br />
to be useful to people who are experimenting with ToBI (silverman92), rather than general text to speech.<br />
To use this method you need to load `lib/tobi_rules.scm' and call setup_tobi_f0_method. The<br />
default is in a male's pitch range, i.e. for voice_rab_diphone. You can change it for other pitch ranges by<br />
changing the folwoing variables.<br />
(Parameter.set 'Default_Topline 110)<br />
(Parameter.set 'Default_Start_Baseline 87)<br />
(Parameter.set 'Default_End_Baseline 83)<br />
(Parameter.set 'Current_Topline (Parameter.get 'Default_Topline))<br />
(Parameter.set 'Valley_Dip 75)<br />
An example using this from STML is given in `examples/tobi.stml'. But it can also be used from Scheme.<br />
For example before defining an utterance you should execute the following either from teh command line on in some<br />
setup file<br />
(voice_rab_diphone)<br />
(require 'tobi_rules)<br />
(setup_tobi_f0_method)<br />
In order to allow specification of accents, tones, and break levels you must use an utterance type that allows such<br />
specification. For example