HomeGenie Forum

General Category => General Discussion => Topic started by: chrispazz on January 02, 2015, 10:40:21 PM

Title: Banana and voice comands
Post by: chrispazz on January 02, 2015, 10:40:21 PM
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
Title: Re: Banana and voice comands
Post by: chrispazz on January 05, 2015, 08:29:31 PM
Noone is using banana sbc?
Title: Re: Banana and voice comands
Post by: Gene on January 05, 2015, 08:50:14 PM
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.
Title: Re: Banana and voice comands
Post by: chrispazz on January 05, 2015, 09:27:41 PM
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
Title: Re: Banana and voice comands
Post by: Gene on January 05, 2015, 09:54:13 PM
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.