0

I had a voice menu in my glass application that allowed to scroll cards using voice commands "next" or "previous". After XE16 update it stopped working. I have been using Glass voice command nearest match from given list code.

The problem is onVoiceCommand() called only once, if I add voiceConfig.setShouldAllowScreenOff(true); it will be called twice. The mVoiceInputHelper.getSpeechLevel() returns -1 after two on voice commands. Any Ideas that might be the reason of this?

I have a hypothesis that kitkat somehow disables mic to conserve energy? If so How can I disable this?

Community
  • 1
  • 1
rippx009
  • 3
  • 2
  • Interesting... I'm working on a Glass project now where we're wanting to do something similar... Question... are you customizing the [speech recognition view](https://developers.google.com/glass/develop/gdk/starting-glassware#starting_speech_recognition) or some other way of capturing voice commands? – Cole May 01 '14 at 23:15
  • No, I have decompiled GoogleVoice.apk, as in this thread: [link](http://stackoverflow.com/questions/21168267/glass-voice-command-nearest-match-from-given-list). There is an offline library that allows you to recognize speech and find a nearest match. The best thing that it is offline and way faster than speech recognition view. The bad thing is that it stopped working after XE16 update. Meaning it sill recognize one phrase and shut down. – rippx009 May 02 '14 at 20:58
  • alrighty, good to know! i see that offline speech recognition is highly wanted among the community per: https://code.google.com/p/google-glass-api/issues/detail?id=273 let's hope it gets added soon! – Cole May 02 '14 at 22:06
  • possible duplicate of [Why is my voice command missing from the ok glass menu in XE16?](http://stackoverflow.com/questions/23097828/why-is-my-voice-command-missing-from-the-ok-glass-menu-in-xe16) – mimming Sep 10 '14 at 22:15

0 Answers0