Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Auto start google assistant on boot
#path /lib/systemd/system/assistant.service
[Unit]
Description=Google Assistant
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/bin/bash /home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library/hotword.sh
Restart=on-abort
User=pi
Group=pi
[Install]
WantedBy=multi-user.target
#!/bin/bash
source /home/pi/env/bin/activate
google-assistant-demo
**** Enable and start service ****
** To start service **
sudo systemctl start assistant.service
** Enable service **
sudo systemctl enable assistant.service
#!/bin/bash
#file path /home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library/hotword.sh
ENV="/home/pi/env/bin/activate"
DIR="/home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library"
source $ENV
python $DIR/hotword.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment