Next: ``BREAK''
 Up: ``sable-elements''
 Previous: ``LANGUAGE''
     Contents 
The speaker-tag now works with german and english. Speakers of another
language may easily be added. 
As default language (between the end of one and the beginning of
another speaker-tag) the language, selected by the user before
analyzing the sable file, is used. 
Possible values 
- for english speakers are:
  
- male1
 
- male2
 
- male3
 
- female1
 
- male4
 
- male5
  
 
  
- for german speakers are:
  
- de1
 
- de2
 
- de2_linginto
 
- de3_linginto
 
- (julia_pizzas)
 
- (julia_drinks)
 
- (mark_numbers)
  
 
 
 
I'm not sure, if they all really work! 
It is now also possible to choose only the gender of the speaker by using:
<SPEAKER GENDER="female" ...> or <SPEAKER GENDER="male" ...>. Here, we
also differ only between german and english, but other languages may
easily be added by inserting another cond-branch equivalent to the
german one in the GENDER-branches at the opening of the speaker-tag. 
Just a few things to be done to add speakers of another language (see
language-tag):
- ``init-function'':
  
- another branch has to be added to the cond-statement equivalent
    to the ``german-branch''
 
- in ``sable_init_globals'', another branch has to be added to
    the cond-statement equivalent to the ``german-branch'' 
  
 
 
- ``restore_ttw_functions'':
  
- another branch has to be added to the cond-statement
    equivalent to the ``german-branch''  
  
 
 
- ``set_ttw_functions'':
  
- another branch has to be added to the cond-statement
    equivalent to the ``german-branch'' 
  
 
 
How the speaker-tag works:
- opening of the speaker-tag:
  
- xxml_synth
 
- current speaker is pushed on the sable_speaker_stack
 
- set back token_to_words-function of current language (at the
    moment only distinguished between german and non-german) using
    ``restore_ttw_functions'' 
 
- selection of the new speaker
 
- set token_to_words on sable_token_to_words
    because this is overwritten in the setting of english voices
 
- set german_token_to_words on
    sable_token_to_words (after saving
    german_token_to_words in
    sable_previous_token_to_words) if language of chosen
    voice is german 
using ``set_ttw_functions'' 
set english_token_to_words on
    sable_token_to_words (after saving 
    english_token_to_words in
    sable_previous_token_to_words) if language 
    of chosen voice is not german 
using ``set_ttw_functions'' 
- sable_setup_voice_params
  
 
 
- closing of the speaker-tag:
  
- xxml_synth
 
- set back token_to_words-function of current language (at the
    moment only distinguished between german and non-german) using
    ``restore_ttw_functions'' 
 
- pop last speaker from stack
 
- evaluate speaker popped from the stack
 
- set token_to_words on sable_token_to_words
    because this is overwritten in the setting of english voices
 
- set german_token_to_words on
    sable_token_to_words (after saving 
    german_token_to_words in
    sable_previous_token_to_words) if current 
    language is german 
using ``set_ttw_functions'' 
set english_token_to_words on
    sable_token_to_words (after saving 
    english_token_to_words in
    sable_previous_token_to_words) if current 
    language is not german 
using ``set_ttw_functions''
   
 
 
 
 
  
 Next: ``BREAK''
 Up: ``sable-elements''
 Previous: ``LANGUAGE''
     Contents 
Gregor Moehler
2001-07-17