List of Mods for Raspberry Pi AIY Project
|I keep finding great mods for the MagPi Raspberry Pi Google AIY Projects box so I thought I’d start listing them all in one place (mainly for me, because I keep forgetting where I’ve seen things!)
Credit to all the makers who’ve come up with these mods!
Disclaimer: listing a mod on here doesn’t mean I’ve tried and tested it, please contact the maker of the mod if you have any issues. (Unless it’s one of mine, then contact me).
Makers, if you want me to add your project, or I’ve got the details / link wrong let me know, either comment on this post, email me or contact me on twitter.
UPDATE – NEW VERSION!
There has been a big update to the AIY Voice kit code which is now included on the SD card image. On the Github repo the original version is the master branch and the new version is the voicekit branch.
Unfortunately this means that the old mods won’t work with the new version so I am going to attempt to show which version each mod will work with, please let me know if Iv’e got any of them wrong.
If you are using the old version I’ve tagged mods that work with that as master, and ones that work with the new version (included in the sd card image starting with aiyprojects-2017-09-11) are tagged with voicekit.
I’ve written a quick guide to writing mods for the new version here.
Basic commands
Shutdown and reboot – master
Timer – master
Shutdown with self destruct! – master
Music
Radio Player for the new version! – voicekit
Radio Player – master and voicekit
Another radio player – master
Play music from Youtube – master
Podcast Player – master
Google Music – master
Other
RSS Reader – master
Play Chess! – master
Reminders / Notes – master
Pimoroni Mote Sticks (Lights) – master
Control 433MHz remote sockets – master
Play news headlines – master (no longer working due to update to BBC url)
I made a replacement headline reader – voicekit
IFTTT works – any
List of Easter Eggs – any
Basic Phillips Hue Support – master
Change the local voice – master
Publish MQTT Messages – master and voicekit
Potential Hotword Support with the Updated SDK – master
Using an Amazon Dash Button as a Trigger – master
Conversation Commands – master
Domoticz Commands – master
Laser Cut Case – any
Using Snowboy for hotword recognition
Controlling servos – master
Control Home Assistant – voicekit
Howdy, I used the kit for controlling 433MHz remote sockets.
Cheers,
http://raspberryblog.de
I’ve been doing the same with mine! Did you find you had to stick the aerial out the back of the box for it to transmit? I haven’t got round to adding any voice commands yet, I’m just using node-red at the moment. I’ve added your link.
Followed your guide in controlling a single 433 MHz socket. Sniffed the code on a separate pi. Once I had the code I added it to your code and placed your code in action.py. Powered on my Google AIY and used the same commands as yours. Google AIY responds by saying turning switch on or off but nothing happens . I viewed the output band get an error use/bin/codesend: not found. I’m missing something but what?
Were you following the guide linked to in this post? In that case I didn’t write it and you will need to contact the author for help. I am controlling 433 MHz sockets with mine, I used the method I wrote up in this post: https://ktinkerer.co.uk/controlling-remote-sockets-raspberry-pi-node-red/ I’m using Node-Red and MQTT and sending MQTT commands from google assistant. This way I can also send MQTT commands from any MQTT client and bypass the google assistant if I want to.
Many thanks for the quick reply. I will try and get hold of the author.
Hi there!
Guess you might as well add my (very basic) Philips Hue support to the list…
And of course it helps to include the link… π
https://www.raspberrypi.org/forums/viewtopic.php?f=114&t=183761
That’s great, I’ve added the link, also have a look at IFTTT, I think I saw Hue lights on there.
Yep, I know about IFTTT, but I wanted this to run local. π
Yes good idea to keep things local.
Any tips for getting my device to work with IFTTT as stated in your article? My device doesn’t even show up in my list of available devices in the google home app. Should it?
Enable Google Assistant on IFTTT https://ifttt.com/google_assistant I found it took a few minutes for the custom voice commands to start working once I’d set them up. Mine doesn’t show up in the google home app either!
Thanks for the response. I have already tried enabling assistant via IFTTT and made sure both accounts on my AIY Assistant and IFTTT are the same. Can’t get any voice commands to work. I’ll keep giving it a shot though.
Can you share an example of an applet you’ve had work successfully with your Google AIY Assistant and IFTTT? Whenever i try to voice activate any custom IFTTT command my AIY Assistant just tells me “I cannot do that yet”
I’ve used both simple phrase and phrase with a text ingredient and I’ve got it sending messages via pushbullet and sending emails. It took a minute or two to start working after I set it up then it works fine. I do have google assistant on my phone as well which also triggers it, not sure if that makes a difference?
I dont have mine yet. From the moment it was released, I’ve been wondering if there is a hands free mod for it yet?
Voice activation? The assistant SDK has been updated to add hotword support but I haven’t had any luck getting it to work with the AIY. There is info here: https://www.raspberrypi.org/forums/viewtopic.php?f=114&t=183932&start=25
Yes that’s what I was after, hotword support. My Pi currently sits behind the TV, so the hotword is the best way for me to use this. Cheers for the link.
Another project with Google Assistant AIY Projects SDK
Raspberry Pi + Microsoft Kinect + Google Assistant(AIY Projects)
Great video! I’ll add it if they share the code (saw your comment!).
The Raspberry Project Pi + Microsoft Kinect + AIY Projects has evolved and is named K.I.T.T. 17, I hope that Mr.SU will share this with the Raspberry community
Hopefully! Thanks for the update.
This no longer works with the new Google Assistant API unfortunately. There is no more action.py file, it has been replaced with different demo files and I can’t work out where the code is supposed to go now.
Thanks for letting me know they’ve updated it. When I can I’ll have a look and see if I can get anything working.
You can always revert back to an earlier version on GIT. Looks like the action.py (among others) were removed when V2 of the API was uploaded on 9/11.
Commits 9/6 and earlier still have the file.
what is the login for ssh?
The default login is user: pi password: raspberry
hi ktinkerer,
i have followed your excellent work for past 6 months and prepared my raspberry pi 3, a complete entertainment box. i have messed and developed new main.py with bbc radio , local radios and youtube music with ding sounds, want your perusal on the new version main.py. Please let me know how to reach you and share the main.py scripts
Do you mean because it isn’t working? What errors are you getting?
It is working, but some fine tune may required, that what I am looking for your support, so that it can be useful for others, who are using new repo.
It is working fine, but some fine tuning may be required, that is what I am looking for your support. So that it would be useful for others, who are using new repo. And also would need your support in fine tuning local command voice.
I don’t quite understand what you want me to do. I can try to help if you are struggling with any of the mods I’ve written?
I have implemented your radio player (for new AIY version). I am getting “failed to decode” errors for any streaming radio URL I try (including the ones in your example). Is there some facility I need to install (i.e., I figured out I had to first install mpd & mpc).
I didn’t write the new version radio using mpd! As I explain at the top of this post this is just a list of all the mods I’ve found.
My apologies. I missed the nuance that this was just a list of AIY mods and that you weren’t the author of the mods. I’ll track down an answer from the author.
hope you like to reply to my request……………………?
I did reply last night, and as I said I am happy to try to help with issues related to mods I have written but I’m not sure what you mean by fine tuning? Also I don’t know what help you want with the local voice command? My email is in the post but you may be better asking in the raspberry pi forums for this kind of help.
i just wanted to share modified main.py script for your validation and distribution after any modification required.
You can email it to me but I’m not sure how I would validate or distribute it?
Good morning,
im trying to use your code for the radio on the newest AIY kit but I get a syntax error stating that Global radio is incorrect. Any ideas?
Thanks
I didn’t write the code for the radio on the new version, you need to contact the original author for help. I actually have written a new version but haven’t published it yet, planning to this week sometime.
I’ve done some work on hotword and voice activation for the new version of the AIY Voice Kit software as well as some other posts on the kit with tensorflow machine learning if anyone is interested. https://danicymru.wordpress.com/2017/12/21/aiy-voice-kit-voice-vad-or-hotword-activation/
Great I’ll add the link! Thank you.
is it possible to get hold of an image based on the master branch still? or can you recommend another way to start fresh with that branch?
I couldn’t see any of the older images on their site, you could try getting the master branch from github. The raspberry pi forum might be of some help.
Could you add some examples using Servos?
I’ve found an example from the MagPi and added it https://www.raspberrypi.org/magpi/motor-aiy-voice-pi/ it uses the old master branch though, if you find any other examples let me know!
Hi, Im new to AIY. Ive set it up in demo mode. What i would like is for the AIY code to start when the Pi boots. I would imagine it would be a simple line in the command prompt but i have no idea what it is.
Systemd starts and stops services when the pi boots, there are some good instructions on the AIYProject page on how to set it up: https://aiyprojects.withgoogle.com/voice#makers-guide-3-4–run-your-app-automatically.
hi guys i dont know how to use them because i dont know where to add comand line and i dont have any action.py can you help me π ?
That means you are using the new version so look for the mods I’ve tagged voicekit they work with that version.
thank you very much for you answer i will check π
hi tried but i still not find how so for example i tried to install radio mod i installed vlc and i put vlc and radio_mod.py and in /home/pi/AIY-projects-python/src and then when i start dev terminal and i type radio_mod.py it say bash: radio_mod.py : command not found i tried to do chmod +x radio_mod.py and again i get the same result π
and when i try Radio Player for the new version! β voicekit i get :
/opt/aiy/projects-python/src/examples/voice/../../../../../../home/pi/AIY-voice-kit-python/src/examples/voice/assistant_library_with_local_commands_demo.py:100: SyntaxWarning: name ‘radio’ is assigned to before global declaration
global radio
Traceback (most recent call last):
File “/opt/aiy/projects-python/src/examples/voice/../../../../../../home/pi/AIY-voice-kit-python/src/examples/voice/assistant_library_with_local_commands_demo.py”, line 162, in
main()
File “/opt/aiy/projects-python/src/examples/voice/../../../../../../home/pi/AIY-voice-kit-python/src/examples/voice/assistant_library_with_local_commands_demo.py”, line 155, in main
with Assistant(credentials,) as assistant:
TypeError: __init__() missing 1 required positional argument: ‘device_model_id’
Sorry about the delay in replying, I’ve been busy all weekend. Did you get this working?
No probleme π unfortunatly no π I searched on the net but I don’t find any tutorial explaining all the step
Did you get the demos working? If you run radio_mod.py in the same way as you ran those (from the dev terminal) it should work.
Yes i type thΓ© folder where she IS /radio_mod.py and i get error message this IS not a excutable or somethin like this
You need to run it in exactly the same way as the demos in the virtualenv, so either opening up the dev terminal on the desktop or going into the aiyprojects folder and running “env/bin/python3 -u src/my_mods.py” if that doesn’t work try redownloading the file.
thank you soo much !!!
but i have this now π
You said: play radio
[2018-03-21 22:10:27,766] INFO:root:Radio command received: play radio
[2018-03-21 22:10:27,769] ERROR:root:Error finding station play
[2018-03-21 22:10:27,770] INFO:root:Playing radio: http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8
[5bb147b0] httplive stream: HTTP Live Streaming (a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8)
[5bb016b8] http access error: error: HTTP/1.1 403 Forbidden
[5bb016b8] http access error: error: HTTP/1.0 403 Forbidden
[5bb016b8] access_mms access error: error: HTTP/1.0 403 Forbidden
[5bb147b0] core stream error: no suitable access module for `http://as-hls-uk-live.akamaized.net/pool_6/live/bbc_6music/bbc_6music.isml/bbc_6music-audio%3d320000.norewind.m3u8′
[5bb147b0] httplive stream error: No playable streams found in Meta playlist
[5bb1e1e8] es demux error: cannot peek
[5bb1e1e8] es demux error: cannot peek
[5bb1e1e8] es demux error: cannot peek
[5bb1e1e8] es demux error: cannot peek
[5bb1e1e8] es demux error: cannot peek
You said: play radio
[2018-03-21 22:10:36,028] INFO:root:Radio command received: play radio
[2018-03-21 22:10:36,029] ERROR:root:Error finding station play
[2018-03-21 22:10:36,030] INFO:root:Playing radio: http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8
[5f102158] httplive stream: HTTP Live Streaming (a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8)
[5f102780] http access error: error: HTTP/1.1 403 Forbidden
[5f102780] http access error: error: HTTP/1.0 403 Forbidden
[5f102780] access_mms access error: error: HTTP/1.0 403 Forbidden
[5f102158] core stream error: no suitable access module for `http://as-hls-uk-live.akamaized.net/pool_6/live/bbc_6music/bbc_6music.isml/bbc_6music-audio%3d320000.norewind.m3u8′
[5f102158] httplive stream error: No playable streams found in Meta playlist
[5f102780] es demux error: cannot peek
[5f102780] es demux error: cannot peek
[5f102780] es demux error: cannot peek
[5f102780] es demux error: cannot peek
[5f102780] es demux error: cannot peek
The error “http access error: error: HTTP/1.1 403 Forbidden” means you are unable to access the url for the radio station. Are you in the UK? If not you will need to change the urls to ones that can be accessed outside the UK, there is a list on the original post about the radio: https://ktinkerer.co.uk/play-bbc-radio-raspberry-pi-aiy-project/
oh okey no i am not in the uk again thank you for you help i really apreciate you worck π
Wow Cool, you posted my forum post as a mod! =D Thanks! =D
(Domoticz commands)
Wow Also the conversation one! =D Thanks for the confidence! I’m still using it everyday! =)