Showing posts with label update. Show all posts
Showing posts with label update. Show all posts

Sunday, October 30, 2016

Home automation update

Last year I wrote about my first entry into the field of home automation and the Internet of Things. My first purchase was a combined motion sensor, video camera and Z-Wave hub that can control switches or lights remotely. The device, called Piper, also has sensors for temperature, light, and sound and contains a security siren. I then added some Belkin Wemo LED lights, that required a separate controller and then some OSRAM Lightify LED bulbs and light strips that required their own controller. Ok so now things were getting rather complex with three separate controllers controlling different things. This really reflects the state of the home automation market with many competing standards fighting for dominance; such as: Z-Wave, ZigBee, Hue, Wemo, and even Google and Apple now entering the fray.
   I then came across something called Smartthings that can talk to most of the different automation standards allowing a single controller to automate a wide variety of devices. Of particular interest to me also was that it supports open-source code allowing developers to make their own "SmartApps" for their own needs. which then they can share with the Smartthings community. For example, somebody might make a SmartApp to always ensure that the garage door is closed at sunset. Somebody else might make a SmartApp to turn on the irrigation system at Sunset for one hour, but only if it hasnt rained in the previous day. I now have a Smartthings hub controlling a variety of lights, a motion sensor, garage door opener, and video door bell. My favourite functionality is being told if the garage door is open if Ive left home and being able to remotely close it. The Ring video doorbell that lets me see whos at the front door and talk to them, even when Im not at home, is pretty cool as well.

from The Universal Machine http://universal-machine.blogspot.com/

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

Read More..

Monday, October 24, 2016

PiAUISuite Update and Voicecommand v3 1

Voicecommand allows you to control your raspberry pi using only your voice. More information and videos on this can be found on my YouTube channel or the original blog posts.

Ive made a couple of key changes and their is a new option for people who want to help with the sox implementation to make the speech recognition more continuous rather than chunk-based.


  • The bug in the voicecommand -s hardware has been fixed.
  • Allows multilingual support with !lang and !language
  • Fixed casing bug when matching multiple variables
  • Install, Uninstall, and Update scripts are now seperated by project. So now if you want to only update youtube, just run UpdateAUISuite.sh youtube
  • tts and tts-nofill have been combined.
  • Moving away from yt.js to browse youtube in the browser. Now adding node.js youtube browsing API. See https://github.com/StevenHickson/RaspberryPiTV
  • Building https://github.com/StevenHickson/RaspberryPiTV to work with voicecommand and adding omxcontrols using https://github.com/StevenHickson/omxplayer_fifo
  • With the above, this allows a control panel that can control videos, play pandora, browse youtube, control music, and run voicecommand. Note that this is in beta and will require a lot of manual installation as their is no installation or readme yet (Hopefully soon to come).
  • Added youtube-dl cron update so that youtube-dl updates automatically every night. Often if someone says the youtube script doesnt work, it is because youtube-dl is out of date and YouTube has updated their security algorithms. Running sudo youtube-dl -U often fixes this problem.
  • Added an option in speech-recog.sh to use sox instead of arecord. Simply uncomment out the sox portion and comment the arecord portion in /usr/bin/speech-recog.sh as below:


sox -r 16000 -t alsa $hardware /dev/shm/out.flac silence 1 0.3 1% 1 0.5 1%


wget -q -U "rate=16000" -O - --post-file /dev/shm/out.flac --header="Content-Type: audio/x-flac; rate=16000" "http://www.google.com/speech-api/v1/recognize?lang=en&client=Mozilla/5.0" | sed -e s/[{}]//g| awk -v k="text" {n=split($0,a,","); for (i=1; i<=n; i++) print a[i]; exit } | awk -F: NR==3 { print $3; exit }


#arecord -D $hardware -f cd -t wav -d $duration -r 16000 | flac - -f --best --sample-rate 16000 -o /dev/shm/out.flac 1>/dev/shm/voice.log 2>/dev/shm/voice.log; wget -O - -o /dev/null --post-file /dev/shm/out.flac --header="Content-Type: audio/x-flac; rate=16000" http://www.google.com/speech-api/v1/recognize?lang="$lang" | sed -e s/[{}]//g| awk -v k="text" {n=split($0,a,","); for (i=1; i<=n; i++) print a[i]; exit } | awk -F: NR==3 { print $3; exit }


rm /dev/shm/out.flac




Please let me know how this works for people so I can debug and get this working permanently. 
As always, you can find the install, update, and new YouTube videos at my YouTube channel here:


https://www.youtube.com/channel/UCxa9JQjCl8ij_7za1_sRCVQ/videos






If you are wondering why Ive been so quiet, its because I moved, started grad school at Georgia Tech, and have been doing a technical review for a computer vision book.





Since Im a poor graduate student, please support my tinkering:






Places you can find me
Get 10% offsitewide when you shop at
at Yescom USA. Valid until October 2013! Retractable Banner Stand at Yescom USA . Valid until October 2013!

Read More..

Wednesday, June 8, 2016

PiAUISuite Update

Quick update on everything that is going on!

Ive been sick (still am but going to the doctors on Friday hopefully) so updates have been slow.

I just pushed out a bunch of stuff and finally voicecommand v3.0 is coming out officialy tomorrow night.

NEW FEATURES!
  • Add logging to /dev/shm/voice.log
  • Allow filler to be a set string that can be changed
  • Add push through mode with text so that voice isnt required for testing, -I flag (that is a capital i)
  • Remove quotes in Misc scripts
  • Switch flags to make more sense (now you follow them by a 0 or 1 to override config file options, ex: voicecommand -c0 overrides continuous to turn it off)
  • Add language support with !language==NN (NN is country code such as en_us or es or de, etc.)
  • Added Wolfram alpha API support. If you have an API you can set !api==YOUR-API
  • Better Youtube streaming (still working on making this even better but youtube is messing with me)
  • Added Hulu/Vimeo support and streaming
  • Removed need for tts-nofill
  • More advanced install scripts
  • Case insensitive commands and keywords
  • Passthrough support to output command instead of running it
  • Am going to finish the install instruction THIS WEEKEND!
  • Am going to make a GPIO example with a video hopefully this weekend
Features for 4.0 that are looking hopeful
  • Getting rid of duration and having voicecommand detect when you stop talking using sox (Ive almost got this working as well as the current implementation)
  • A nodejs server that is a variant of RPiTV to control voicecommand, youtube, and my other scripts with a pretty HTML front end.
  • Smart phone control
  • Android advanced app to allow you to record voice on phone and send data
  • XBMC plugin (maybe, this is still a stretch goal).
  • emulationstation and video game support (need to figure out how to get this running from within X11)
Read More..

Friday, March 11, 2016

Voicecommand speed update and extra language options

So its been a little hectic. I moved to San Francisco and mid move, Google decided to deprecate their Speech V1 API. I switched to V2 but did it too quickly and had a lot of problems.

For those of you who havent seen my voice control software, you can see it in action here and find out how to install it here.

After some investigation, I found that V2 is much, much, much slower over wget and switched to Curl. This should fix all the slow down issues.

I also re-enabled all the languages that Google enables. So now voicecommand again supports over 100 languages [ but not pirate I guess :( ]

You can update with the UpdateAUISuite.sh script in the install folder (run with sudo!)


Sorry this post took so long. Ive been busy collaborating on a new app (also its my Birthday today)
I would love you guys to try it out. It is called Fyuse. Download it by clicking below and enjoy a Fyuse of my Raspberry Pi (though web experience is not as cool as the mobile experience).




Consider donating to further my tinkering since I do all this and help people out for free.



Places you can find me
Read More..

Sunday, March 23, 2014

Blog Update For February

Brawl has a release date! The 6th of June is supposedly the release date for Super Smash Bros Brawl in Europe. On Gamespot, this is the listed release date, although, having said that, there has been no such mention on the Dojo. Furthermore, this is some what undermined by Games website listing the release date as the 1st of May and Nintendo, the publisher of Brawl, refusing to confirm any of these release dates. Personally, I think it will come out 6th June, but that date is not set in stone just yet. It will probably be confirmed after the American release date (March24th)

Also, you will have noticed I have slightly spruced up the design. I hope you like the improvements. The next couple of months I will be working to put the Podcast together and hopeful securing some interviews for the blog. Then the focus will switch to the Flash Media Player - to play said podcasts and videos. Finally, when that is all done, I will hopefully have a proper server and I will build a forum. If you would like to secure your desired user name, because there will be so much demand, I will be setting up a form on the forum page in the coming months. Please do, as it will give me an idea of the no. of users. All you will need to do is write down your desired user name and your email address so I can contact you when the forum is being built.

GDC was this month. There was a very interesting video about Fable Two presented by Peter Molyneux. It really made me want to dig up my copy of Fable. It was a shame, as being English, no one got any of his ironic jokes, however, I still enjoyed it. One highlight was when he went to visit his husband and child (yes, he was female and had to be pregnant - [he apologised for there being no labour mini game) When he arrived, his child ran up to him and was like "Hey Mummy, your home!" Whereas, when he went up to his husband, he was cross that he had left him for so long. Then, his co-op partner just shot his husband. Peter then explained how that was it, game over for his husband. He could not and would not come back. When he went away adventuring, his child would be taken in to an orphanage. I may possibly be doing a 3 part feature, one a preview on F2, one discussing the Good/Bad decisions that make the heart of Fable and a third on something else.

Also, there was a video for the new Unreal Engine. Personal highlight was the "Block of meat we built" This was to demonstrate the soft body physics engine the new build will feature. Also, there were some cool water effects. The engine was demoed with the Gears of War protagonist. Talking of Gears of War, I purchased a copy for a friend on Ebay, so, if it turns up on Wednesday, I will be able to play on it for that evening.

Oh yes, there was a , albeit brief, trailer of Gears of War. Very cool and well worth checking out (All links are at the bottom of the post)

GDC, as good as it is now, will, like E3, change. This is because it is meant to be an academic event and, following the collapse of E3, it has become much more commercialised. I feel this is good, as I dont want another E3, however, the way they are securing this future is by banning all non-full time journalists. Meaning - I cant go.

Also, Civilization Revolutions has been put on indefinite hold for the Wii (not for the 360 or the PS3) This usually means cancelled, which will be a shame as the Wii is the console most suited to this title.

EA Bought 2K this month. 2K being the publisher of Civilization. While Sid doesnt seem to be too fussed, I am worried as EA has a habit of milking cows till they bleed, and even then. I cant count on all my fingers and toes the number of Sims titles there have been, for example. We will have to see where this partnership goes, because, between the two of them, they have quite a lot of every market cornered. The last big publisher is THQ and Sega maybe. Oh, and Sony, Microsoft and Nintendo, but they dont count.

Op-Ed Article: Graphics Galore (title pending) I will be looking at the supposed "HD Era" and how good good graphics actually are. Can they be the icing on a cake or make up on a elephant? You will have to read tomorrow to find out.

Links
Read More..
 
Copyright 2009 Information Blog
Powered By Blogger