Author Topic: 2nd Genaration H@L - Android Only Voice Recognition for Vera  (Read 51400 times)

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #15 on: April 30, 2013, 06:12:18 pm »
Here are some examples ...  You can have more words before, after, or between the pieces.

Thermostat Name Heating 70
Thermostat Name Cooling 70
Thermostat Name Mode Cool
Thermostat Name Fan Mode On
Thermostat Name Occupied
Thermostat Name Status

i.e.
 Hal, Please set the Thermostat Name Heating temperature to 70 degrees.


Offline S-F

  • Hero Member
  • *****
  • Posts: 1248
  • Karma: +62/-12
  • Clueless N00b
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #16 on: April 30, 2013, 06:18:55 pm »
I see. Since I only use "The Thermostat" for heating could I make a dictionary modification so "The Thermostat" is recognized as "The Thermostat Heating"?
My forum account was apparently hacked by a leprechaun. And he's drunk all of the time. If a post of mine seems a little off kilter, it's probably because he made it.

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #17 on: April 30, 2013, 06:43:00 pm »
Once I get the key features working reliably I will release the semantic definition file.
Then you can create your own rules ...
    Freeze em out        could mean set the heating to 45

At present the dictionary is word at a time ... I have a request to make it phrase at a time.

At that time it will translate one phrase to another.
I will probably include my fuzzy logic match into matching the phrase ... so you do not have to match it exactly to substitute a phrase. You would then be able to do this with just a dictionary entry.

But semantic rules are a lot more flexible than a dictionary of expressions.

Offline landman2k1

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #18 on: June 12, 2013, 12:52:38 am »
I downloaded and installed HAL while watching your video.  I was local so it had my device and username.  Upon first launch, I get the standard greeting, and then it seems like nothing works after that.  Pressing the talk button does nothing.  I changed the greeting as you had, closed the app and restarted, but no greeting.  Force stopping the app did not help either.  I uninstalled/reinstalled and again, got the standard greeting, but nothing else seems to work for me.  What am I missing?  I the video it looks like you just installed the app and started talking.

Thanks for your help!!

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #19 on: June 12, 2013, 07:44:55 am »
That's all I do ?

It sounds like it's hung up on something in your configuration.

Try deleting everything in the HAL directory on your phone and restarting.

If this continues ... you may need to turn on all of the debug options and send me the log file.
The log file will be written into the HAL directory.

Offline landman2k1

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #20 on: June 12, 2013, 11:05:47 am »
Im not saying that's all you do, not at all, just saying that in the video, it looks like the only "steps" you took were to basically install app and start speaking.

Everything in HAL dir deleted.  Restarted, with same result.  I did notice when deleting the files that my dictionary file was 0 bytes.  Turned on all debug options and restarted.  I now have a haltrace.log file.  How would I go about sending that to you?

Offline Christophe G

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #21 on: July 27, 2013, 06:24:41 pm »
Hi Richard,

Hal is really a great brick in home automation. If you?re looking for any kind of help to 'teach French' to Hal fell free to get in touch, I'd be glad to help.
I tested Google Talk's capacity (from within your app) against typical automation commands and it works nicely.

Best regards,
Christophe

Offline Da_JoJo

  • Hero Member
  • *****
  • Posts: 1380
  • Karma: +16/-78
  • If something aint work, we can allways try n make
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #22 on: July 28, 2013, 08:12:50 am »
cool stuff. i tried using it but somehow it translates my english to dutch language xD
so i guess dutch is a possibility :-D
my s3 understand dutch very well and my english speaking is not translation good. either my pronounciation or its thinking i speak dutch.
how would i go about changing the commands to dutch language ?

edit:  as soon as anything is in the file Dictionary.csv the program crashes.  there was only one line :  om kitchen,on light kitchen
         seems to work when using built-in editor, only if no empty line i.e. comma is there.
         when i add lines with notepad and put it back on my s3 the HAL crashes (attached file renamed to .txt as forum wont take it like .csv ... same for .log )

more edit: ok i got it... in the program HAL itself go to Dictionary.. i set   

Google Translation:       What I Said:
 keuken uit                     light kitchen off
 hoerig                           RGBW red on
 zet koffie                      Coffeemachine on

me like ^^ 
which files do i need to translate ? the ones in JS dir or do i make new files called : names.config  ?
« Last Edit: July 28, 2013, 09:24:21 am by Da_JoJo »
Vera lite (1.5.622), 2x an-158/2, dead usb pl2302 rs-232, 2x greenwave 6 port, 4x Fibaro FGD211 v1.6, FGBS001, few FGS - 221, etc. AuthomationHD 3 for android :-)
Dutch & German translator http://wiki.micasaverde.com/index.php/Special:AllPages http://support.micasaverde.com http://domotica-shop.nl

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #23 on: July 28, 2013, 02:08:51 pm »
I have extracted the grammar rules (Commands) into an external file with the intention of localizing this. But I did not know how good the voice recognition is in other languages.

Also there has been very little feedback on HAL so I have not done much with it for a while.

I do plan on doing the open mike feature.

If you are interested in trying to get it to accept Dutch commands I can probably document how you can modify the files on your phone to see how it might work .... There are still a few responses that are hard coded ... but only a few.

I hope you reported the crash ... I will fix it ... The dictionary has had a few bugs ... it was so simple I did it quickly .... and thats  where all my crashes have been.

Offline timmyg

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +1/-0
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #24 on: July 31, 2013, 01:55:40 am »
This app is awesome Mr RichardTSchaefer and I did enjoy the youtube tutorial!

It understands my Aussie accent without issue.

Would you consider having pin code protection on the app? I would not like for any of my tech savvy, cheeky friends to download the app and give orders front the front of my house!  ;D

I have the same issue with the sonos app but thats another story!

Tim

Offline jay2068

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #25 on: August 02, 2013, 09:12:51 am »
Getting version expired when running application

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #26 on: August 02, 2013, 09:54:58 am »
I expected to release a new version a couple of weeks ago ... did not finish testing before I had to do some travelling ... I will need to release a new Version today.
 

Offline AndyW

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #27 on: August 08, 2013, 01:42:59 pm »
This app is brilliant!!

I've had to rename a few devices to make the recognition easier but the new names make more sense anyway. It make controlling my Vera for the more common things a lot quicker and easier than any other normal Vera controllers I have used.

I am very impressed with how this works and surprised it hasn't generated more feedback for you. I think the Open Mike idea is great I would put it on a tablet which is always on my coffee table and could avoid reaching for my phone.

I'd like to use a Bluetooth headset with it so I can say "Open the pod bay doors" and ride my bike straight in, so bluetooth support would be good.

More devices would always be useful, Thermostatic Radiator Valves etc.

I'm sure this is a big ask but integration with the SONOS plug in to either use TTS to broadcast a message to one or more SONOS devices or even recording the speach to send as an MP3 or equivalent would be amazing. 

Also the security as mentioned earlier in this post would be useful.

Thanks for the hard work you have put in to it. I am very interested in any further developments made with this.

 

Offline hek

  • Hero Member
  • *****
  • Posts: 714
  • Karma: +60/-1

Offline Thiemen

  • Jr. Member
  • **
  • Posts: 85
  • Karma: +0/-0
Re: 2nd Genaration HAL - Android Only Voice Recognition for Vera
« Reply #29 on: August 10, 2013, 02:16:48 pm »
First I think that you should receive credits for making this second version of the app much easier compared to the first version!

The app has some problems with me being dutch and recognizing the words i say, but hey this is a start in bringing home automation to the next level.

I think i have to work on my english or try to see what is possible with google voice in dutch language.
But we should try to get a lot people wanting to help to translate this to other languages and or finding ways to get the regocnizing better.

The app crashes or does not respond often at my phone, are more users having this behaviour?