Search code examples
google-glassgoogle-gdk

GDK Listener forced for numeric input only?


I am developing glassware to receive a numeric value that will be queried in a database. Is there any way to utilize the Listener so that it only receives numeric input?

For example, if I say "1 2 3".. I want to avoid the possibility of glass hearing "1 to 3"

Thoughts?


Solution

  • I guess you are talking about voice command listener. U can't make any change in voice interpretation logic until you are the developer of Google voice app.

    So i think other alternatives may be :

    1) Show digits 0-9 as menu options and let user select one. repeat the process until user entered whole number.

    2) Allow user to inter number through mobile app, connected to glass via bluetooth/TCP/WWW. Just like MyGlass app.