Example "top-level actions" would be "Google," "take a picture," etc.
Is it possible using the Mirror API to register a custom top-level event? "OK Glass, crunchify me."
A secondary question I have is if it's possible to take user speech. Using the "OK Glass, Google" example, the user says a query that Google takes and acts on. Is it possible to capture that for your custom action using the Mirror API?
This is not yet possible with the Glass client nor the Mirror API. However, there is already a filed feature request that you can follow to get updates on the progress.
You can do that right now only if you both root the device (voiding your warranty) and activate what they call "Lab experiments". More specifically one called "Native App Voice", which enables you via AndroidManifest.xml of a native APK deployed to the Glass to enable a voice shortcut on the ok,glass menu to launch an intent to your app.
See: https://gist.github.com/zhuowei/5624527
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With