This sample codes demonstrates how to implement the voice recognition into a Glassware application.
The sample is a standard GDK's LiveCard, but you can easily move the code related to voice recognition into an Immersion.. It only depends on your needs.
We followed the instructions given by the stackoverlow user "blueshadow" at this link.
The only thing that changes from the given instructions is the path from where you should pull the GlassVoice.apk: from XE17 update it turned out to be "./system/priv-app/GlassVoice.apk".
To convert the pulled .apk into a .jar file you have to download the dex2jar tool (we used the 0.0.9.15 version) and run from the command pront - or shell, depending on what OS you are working on - the following istructions (more info at this link):
- cd [dex2jar_folder_path]
- d2j-dex2jar.sh -f -o [jar_file_name].jar [apk_file_full_path].apk