more G-Labs products

Author Topic: Banana and voice comands  (Read 1665 times)

January 02, 2015, 10:40:21 PM
Read 1665 times

chrispazz

  • **
  • Information
  • Jr. Member
  • Posts: 38
Hello.
If I buy a banana SBC instead of my Raspberry, I can use continuos voice recognition mode using a mic connected to it? Or I have to push some keys to start HG listening for them?

Where is a list of voice commands?

Thank you
Chris

January 05, 2015, 08:29:31 PM
Reply #1

chrispazz

  • **
  • Information
  • Jr. Member
  • Posts: 38
Noone is using banana sbc?

January 05, 2015, 08:50:14 PM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi chris,

HG relays Google Voice API.
When you say a command, Google Voice API reply back to homegenie with the text of the command.
If you want to use directly a mic input, you will have to write some code that takes the audio input and route it to Google Voice API or other voice service.
Then you can send the text sentence to HomeGenie voice control api by calling:
Code: [Select]
HG.VoiceControl.InterpretInput(sentence)To find out what commands are recognized you can take a look at lingo files:
https://github.com/genielabs/HomeGenie/tree/master/BaseFiles/Common/html/locales
which basically maps words to an HomeGenie command.
You could also see how parsing of voice command is realized in the Android App:
https://github.com/genielabs/HomeGenie-Android/blob/master/HomeGenieAndroid/HomeGenie/src/com/glabs/homegenie/util/VoiceControl.java

Cheers,
g.

January 05, 2015, 09:27:41 PM
Reply #3

chrispazz

  • **
  • Information
  • Jr. Member
  • Posts: 38
So it is useless to but a banana sbc with builtin mic input without writing some code.
I am currently using a Windows phone and an iPad and none of them let me use voice commands....

Thank you gene

January 05, 2015, 09:54:13 PM
Reply #4

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
HG Voice control is currently only available on browsers supporting Speech API (like Chrome) and Android.
Try installing Chrome on iPad... it might work.

g.