Google is giving away a “AIY Projects” Voice/AI kit for the Raspberry Pi to MagPi subscribers, featuring voice and stereo mic HAT add-ons. You can read about the details in the MagPi digital edition which is available for free . While it would be nice to have this tiny cardboard box, it seems to be pretty much straightforward to build your own. The Voice Hat basically is an I/O hat for Raspberry which you can get for about 15 Euros (I believe you can even do without). I am not sure whether or not the stereo microphone are anything special. For sure, it is not a microphone like you have with Amazon Echo. The “AIY Projects” offer access to the Google Assistant SDK and Google Cloud Speech API to enable devices with voice response and AI functionality linked to Google’s search engine cloud services. More projects are expected to release soon. https://aiyprojects.withgoogle.com/
-
Google Vioce Kit / Google AIY
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
I found a project which makes the AIY a bit more interesting for you. With this I am able to control devices using the Voice Kit. https://hackaday.io/project/27105-google-assistant-on-pi-with-extended-features
shivasiddharth his script gives the possibilty to use a trigger word which makes it possible to add your own commands using Snowboy hotword detection.
I basicly followed his tutorial and added the following import at the top and if statement between the if/else statement after the trigger word. I also used an extra bash script (speech.sh) to have the system reply when toggling the device. Because i wanted the voice to stay the same, I used the google text to speech engine found at: http://elinux.org/RPi_Text_to_Speech_(Speech_Synthesis)#Google_Text_to_Speech. but you can change that is you wish.
So when ever i say the trigger word to google it basicly ends the converstation with google, and searchs the recorded text for, in this case “livingroom light”. If it finds it, it wil run the following commands.
The only downside is, i cannot ask google questions which contain the trigger word because it will cut the convo and run the if/else statement. I kept the default word “trigger”, and i don’t need to be asking google about gun triggers so im basicly safe
import requests elif 'livingroom light'.lower() in str(usr).lower(): os.system("sudo ./speech.sh Triggering livingroom light") time.sleep(2) url = "http://admin:password@192.168.X.X:X/api/execute-action" data = {'actionString': 'toggle Livingroom Light'} headers = {'Content-type': 'application/json'} r = requests.post(url, data=json.dumps(data), headers=headers)
-
Hi all,
Some mods can be found here http://ktinkerer.co.uk/list-mods-raspberry-pi-aiy-project/.
I use mqtt mod and it works.And my hotword is: https://youtu.be/lu88J5JL8Hw?t=16s
Pimatic = Smart Home
-
@wutu yes i also found that, i havent tested it yet, but the version im using also supports the pi zero. Which is the main reason I went looking for an alternative.