Google Glass Enterprise Edition 2 set voice command language

310 Views Asked by At

I try to change the language for voice commands on the Google Glass Enterprise Edition 2. I implemented the functionality as described here: https://developers.google.com/glass-enterprise/guides/inputs-sensors#voice-commands. How to change the recognition language is not described (and maybe not possible?) So i tried to simply swap the recognition strings to german words, but had no success. Changing the Android system language to german does not work either.

Maybe there is a native Android approach to change the voice recognition language to german (or any other language)?

Just for curiosity I created an instance of the TextToSpeech engine and let the glass speak some words in german, which worked. So I guess the Android OS in general is capable of speaking and listening to german, but somehow the (google glass specific) app initialization/configuration just considers english? I would be happy, if someone has an idea or a hint on how to change the command recognition to another language.

1

There are 1 best solutions below

2
Chowder On

I am also stuck with this but for voice recognition. I had tried setting EXTRA_LANGUAGE on the new intent but to no avail and changed LOCALE to Japanese. But upon checking release note OPM1.200313.001 it is stated that they added API for voice input(for english language).OPM1.200313.001 release notes

With regards to the text to speech it is also stated in the latest release that they added several languages to handle text to speech.