Now controlicz is a paid feature, some people stopped using it.
I didn't have controlicz in the past, but would like to get an idea if google home works good or not, before paying for an external service.
Therefor i toke a raspberry pi and start some googling.
First started with 'open jarvis' or 'jasper'.
Jasper is not easy to install, after install i wass not that happy whit it.
Then tried Open Jarvis. This one is easier to install. But the same problem with jasper.
Both programs don't have a good voice control. Need to say, that i tried to run them offline (without internet). The idea was, when it works, they can change to www, but my voice control stays working. Unfortunally the voice control needs to be exact. When calling a keyword, it needs to be exact. For example turning on lights, i needed to ask it 5 times before it worked (or is my voice the problem?)
Therefor looking further with something like google home or Alexa.
Then i found GassistPi and just tried it. I worked suprisly wel. That i want to share it whit you all.
But first need to be said, if you don't have anything whit a raspberry pi and don't want to invest time in it, stay whit controlicz.
You don't need to be a programmer, everything can be found with google, but you need to invest time.
Also it is not cheaper than buying a google home
I didn't designed this, all grads to Shiva on github.
What hardware is needed, this is the minimum.
- Raspberry pi whit sd-card (advice, do not use an raspberry pi zero, it has an other arm verion)
- microphone
- speakers
For a Pi i used the 3+ version
Speakers are just a cheap set, bought i a 1 euro shop. Works just fine. Mine are working tru the jack-plug
For the microphone, this could be a problem. It need to be a good microphone, otherwise google home can't work.
After some googling i tried to microphones. The respeak 4 mic array and the ps3 eye (yes playstation3 eye).
What is my experiance. The respeak works best when you device is in the middle of the room. Because it can pick up sound from every direction. But it cost a little more. The ps3 eye was a big suprise. For a few euro's it worked very good. I tried both microphones next to each other (when not in the middle of the room). And both worked the same. Not 1 better or worse.
Because the project is not cheaper than a google home, i chose to go for the PS3 eye.
Maybe there are more people who like to try this project, and cheaper can be prefered.
Setting up the pi.
I don't go in putting the image on you pi and change your password of it.
First you microphone has to be setup. You need to setup the audio drives.
Do in putty
Code: Select all
sudo nano .asoundrc
And place this code in it (don't forget to save).
Code: Select all
pcm.dsnooper {
type dsnoop
ipc_key 816357492
ipc_key_add_uid 0
ipc_perm 0666
slave {
pcm "hw:1,0"
channels 1
}
}
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "dsnooper"
}
}
This also has the staps what you need to do at Google.
This is the link: https://github.com/shivasiddharth/GassistPi
I had one problem after install. That i got a gtoken.py error.
Search the gtoken.py (command line is in the error, where it can be found).
Copy it, give it a different name (just to have a backup).
And modify the Original gtoken.py to this https://github.com/BoseCorp/py-googletr ... /gtoken.py
Now i had a google home which can answer normal questions.
But we are on domoticz forum, so asking "OK google, sing me a song" is not where we are looking for.
But shiva has domoticz in it. Just need to enable it, how to do that, follow the instructing on his page.
All i can say, it works perfect.
The default controls for domoticz are, ON, OFF, TOGGLE, CHANGE COLOUR, CHANGE BRIGHTNES
I added OPEN, CLOSE, HALT (stop is already used for stopping mucic).
But unfortunally i added thos in a other version and after installing the last version (yesterday), i saw that to domoticz program is changed. So i can't copy/paste it from a backup. But i am working on it. This is why i said: if you don't want to invest time, stay/go with controlicz.
But now need to make it nicer, my wife doens't want this in the room

This is how far i got by now.
I orded a differend speaker, with the idea to put the pi in it whit the microphone.
But also add the lights when google home is lissening or speaking.
I ordered this speaker. I should have the space inside, but therefor i need to remove the battery. I don't find this a problem, because i don't want to walk tru the house with google home on my back. Also running the pi on the battery is not a good idea. When battery is empty it can crash the sd-card and you need to start over (Always make an image backup)

What to do with this project:
- Adding open, close, halt controls for domoticz
- Streaming audio is now over the small speaker, i want it to stream over sonos. Only streaming, not google home voice
- Making the GassistPi nice in a speaker housing
- Adding Neopixel
- Optional, adding some elekctronic power supply. When power is disconnected, the pi not just goes out, but has +/- 30seconds to do a shutdown.
GassistPi Features:
1. Headless auto start on boot.
2. Voice control of GPIOs without IFTTT, api.ai, Actions SDK.
3. Voice control of NodeMCU without IFTTT and MQTT.
4. Radio streaming.
5. Voice control of servo connected to RPi GPIO.
6. Safe shutdown RPi using voice command.
7. Stream Music from YouTube.
8. Indicator lights for assistant listening and speaking events.
9. Startup audio and audio feedback for wakeword detection.
10. Pushbutton service to stop Music or Radio playback.
11. Parcel tracking using Aftership API.
12. RSS Feed streaming.
13. Control of Kodi or Kodi Integration.
14. Streaming music from Google Play Music.
15. Casting of YouTube Videos to Chromecast and Chromecast media control by voice.
16. Voice control of Radio/YouTube/Google Music volume levels.
17. Control Sonoff Tasmota Devices/Emulated Wemo.
18. Track Kickstarter campaigns.
19. Emulated Philips Hue HUB service and control of Emulated Hue Lights.
20. Search recipes and get push message of ingredients and link to recipe.
21. Remote control of Magic Mirror.
22. Sending voice messages from the phone to the raspberry.
23. Play your Spotify playlist.
24. Custom wakeword activation for all Pi boards.
25. Mute microphones to prevent listening to Ok-Google hotword.
26. Create custom conversations.
27. Control of lights added to Domoticz.
28. Stream music from Gaana.com.
29. Stream your playlist from Deezer.
30. Custom actions in French, Italian, German, Dutch and Spanish.