fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.61k stars 148 forks source link

rewrite locale strings to IETF standard and check for model existence #526

Closed norbusan closed 4 years ago

norbusan commented 4 years ago

Fixes #525

The strings used by PocketShpinx to identfy languages are IETF standard (ll-CC) while we save the locale string in susi config. This PR does:

This is the same behavior as before, where English was hard-coded.

norbusan commented 4 years ago

@Orbiter well found that one - it is anyway out of date now since there is no state machine anymore ;-) The new code has already the changes. I close this.