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

Voicecommand Update and Fix for Google Speech v2 0

Sorry it took so long for this. Googles deprecation of the Speech v1.0 api came at the worst possible time for me as it was right before I started driving across the country.

I didnt get to fix it yesterday when I got into San Francisco either because I ended up going to Maker Faire and then hung out at a bar with all the Hackaday people. I met the guy who invented sudo and figured out I have the same watch as Mike Szczys.

Anyways, Ive fixed voicecommand to work again and I fixed a couple of small bugs, including one in the install script which didnt copy the voicecommand config properly.

To get the fix, just run the update script (or reinstall if you are having config file issues).
I detailed how to update here:
http://stevenhickson.blogspot.com/2013/06/installing-and-updating-piauisuite-and.html

Heres a picture from Maker Faire for your trouble!



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



Places you can find me
Read More..

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..

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..

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..

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..

Get to Google faster Update your default search engine Sure No thanks How to Stop it

                                  
There is an easy way to stop getting the,

 "Get to Google faster. Update your default search engine.  Sure. No thanks."

message at the top of the Google start page.
...................................................................................

A lot of old stuff still exists out there.  There is an ancient URL for Google that was once used to get to iGoogle.  This URL can be modified to your region and the "Get to Google faster" nuisance message does not appear.


As an example the usual URL for Google Australia is "https://www.google.com.au/".  The nuisance nag always shows at the top of the Google page when I start Internet Explorer.

If I use the URL "http://www.google.com.au/webhp?nord=1" as the start page the nag message does not appear, but the normal Google au search page appears.

Just modify the URL for your region.

If you are in the uk use the URL "http://www.google.co.uk/webhp?nord=1".

No need to download  Adblock 1.3.10. and enter "##DIV#mgmhppd" as a new filter rule.

Just use the URL as set out above.

There we have it.

Happy Interneting
                           Ty
Internet by Ty Buchanan 


Read More..

Blog Update

Hello, another month past and another blog update to write. I just managed to review Rome Total War by the end of the month. I started a new blog today @ building-website.blogspot.com so read it. Age of Empires 3 has come out in America but is yet to come out here so we all wait in anticipation. I got a new game for my Xbox- international Winter Sports. I got it because it meant I got money off my new controller. Its very fun if some what repetitive. Full review coming this month. Xbox 360 is also coming out this month and it looks INTENSE. My report on it is also coming this month. Facto. I would like to do a couple of posts on things that arent reviews and stuff but I am not going to reveal them as I want them to be surprise.

I wont get to do my retro reviews for a while. I was planning to add a new monthly section called quick reviews. They will be 1 paragraph reviews of games I just have demos of or went on at a friends house. There will be 5 a month. I might not be able to do it this month but I will try. If I do it will be the last day of each month. I would like to review Star Wars Force Commander for R2D2!

Another thing I would like to include is web-update which would have my favorite flash movie, game and website. I dont know if I will because I might have to much to do.
Read More..