Institut

Studium

Forschung


 

next up previous contents
Next: ``SPEAKER'' Up: ``sable-elements'' Previous: ``SABLE'' &nbsp Contents

``LANGUAGE''

The language-tag now works with german and english. Speakers of another language may easily be added.
Possible values
  • for spanish are:
    • spanish
    • es
  • for english are:
    • english
    • en
  • for german are:
    • german
    • ge
    • de
whereas ``sable_init_func'', ``set_ttw_functions'' and ``restore_ttw_functions'' have to be adjusted for the spanish language.
Just a few things to be done to add other languages (see speaker-tag):
  1. ``init-function'':
    1. another branch has to be added to the cond-statement equivalent to the ``german-branch''
    2. in ``sable_init_globals'', another branch has to be added to the cond-statement equivalent to the ``german-branch''
  2. ``restore_ttw_functions'':
    1. another branch has to be added to the cond-statement equivalent to the ``german-branch''
  3. ``set_ttw_functions'':
    1. another branch has to be added to the cond-statement equivalent to the ``german-branch''
How the language-tag works:
  • opening of the language-tag:
    1. xxml_synth
    2. current language is pushed on the sable_language_stack
    3. set back token_to_words-function of current language (at the moment only distinguished between german and non-german) using ``restore_ttw_functions''
    4. selection of the new language
    5. set token_to_words on sable_token_to_words because this is overwritten in the setting of english voices
    6. 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''
    7. sable_setup_voice_params
  • closing of the language-tag:
    1. xxml_synth
    2. set back token_to_words-function of current language (at the moment only distinguished between german and non-german) using ``restore_ttw_functions''
    3. pop last language from stack
    4. evaluate current speaker
    5. set token_to_words on sable_token_to_words because this is overwritten in the setting of english voices
    6. 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 up previous contents
Next: ``SPEAKER'' Up: ``sable-elements'' Previous: ``SABLE'' &nbsp Contents
Martin Barbisch
2001-08-28