Author Topic: Knowing the language of the speech engine used ?  (Read 779 times)

Ciryan

  • Newbie
  • *
  • Posts: 14
Knowing the language of the speech engine used ?
« on: January 25, 2020, 04:57:52 PM »
Hi there !

As the title says, I'd like to know if there is a way to know in witch language is set the speech engine.
Tried {STATE_CULTURE} and {STATE_UICULTURE} but none of them gave me the right info.

If there isn't, would it be possible to have a token that gives this kind of info ?

Thanks.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Knowing the language of the speech engine used ?
« Reply #1 on: January 25, 2020, 09:58:56 PM »
There is currently no method for retrieving this, to my knowledge. You could attempt to get the "SpeechEngine" value from the config file, but the selected engine (if non-default, and only if the option has ever been changed) is not in a useful format (E.G. "MS-1033-80-DESK" is the English - US recognizer).
« Last Edit: January 25, 2020, 11:00:06 PM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Knowing the language of the speech engine used ?
« Reply #2 on: January 25, 2020, 10:59:39 PM »
I've added a new token {STATE_SPEECHCULTURE} that will return just the culture name.  For instance 'en-US' for English/US or 'de-DE' for German.  This will be in the next release - no ETA on that, though.

Thanks for the suggestion!