Menu

#74 country is not maintained when setting language with ssml wi

v1.0 (example)
closed-fixed
None
5
2013-12-20
2011-07-21
No

If eSpeak is set to language XX_YY and then a tag with xml:lang
attribute set to xx is given to eSpeak, eSpeak chooses the first voice
available with xx. This makes sence if the language was originally
something other than xx, but when it is xx, I would think it would be
suitable for it to stay as xx_YY. For example: I have eSpeak set to
en_SC (English Scottish) but I then request it to speak in en (English,
no specific country) I would prefer it to stay as English Scottish,
rather than switching to English UK.

Discussion

  • Jonathan Duddington

    I'm not sure what is the correct behaviour for this.

    In eSpeak 1.45.34, I have changed it so that the language which has been set before the file is read (i.e. set by calling espeak_SetVoiceByName() or espeak_SetVoiceByProperties(), or by the -v option with the command-line espeak) is remembered. If an xml:lang tag specifies a language which is compatible with that voice then that voice is used rather than the highest priority voice for the specified language.

     
  • Jonathan Duddington

    • assigned_to: nobody --> jonsd
    • status: open --> open-fixed
     
  • Jonathan Duddington

    • status: open-fixed --> closed-fixed
    • Group: --> v1.0 (example)
     

Log in to post a comment.