Pages

Showing posts with label voicecommand. Show all posts
Showing posts with label voicecommand. Show all posts

Monday, December 5, 2016

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

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

Thursday, March 24, 2016

Installing and Updating PiAUISuite and voicecommand

Here are some in depth demo videos on how to install and update PiAUISuite and voicecommand.

If something goes wrong, get the newest code and reinstall. Make sure you read the README file and regularly update to fix errors and get new features.

Install instructions:

sudo apt-get install git-core
git clone git://github.com/StevenHickson/PiAUISuite.git
cd PiAUISuite/Install/
./InstallAUISuite.sh



Voicecommand setup instructions:

voicecommand -s





Update instructions:



cd PiAUISuite
git pull
cd Install
sudo ./UpdateAUISuite.sh





If youve watched the videos and read the posts and read the README and something still doesnt work, feel free to contact me and ask questions.

Thanks!



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


Places you can find me
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..

Voicecommand image file and controlling electronics with your voice

With the introduction of the Raspberry Pi B+, a lot of people are finding image files arent working unless updated first. Because of this, I went ahead and made a fresh image file for voicecommand on Raspbian that is A/B/B+ compatible.

You can download it at:
https://mega.co.nz/#!MM8W1JxR!4PlZ_1-dumasDUCYRI4LuiBwEJgtqhfoin0R8ls90NQ

Ive also taken the liberty of putting wiringPi and pilight on it. This means its easier than ever to control electronics with your voice (Ill post more on that later).
You can read more about it at the hackaday projects page here.

And here is a quick video demo:

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



Places you can find me
Read More..