Last active
September 23, 2022 12:15
-
-
Save arevindh/ae50e18394625747e6beae600b10e374 to your computer and use it in GitHub Desktop.
Auto start google assistant on boot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /home/pi/env/bin/activate | |
google-assistant-demo | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**** Enable and start service **** | |
** To start service ** | |
sudo systemctl start assistant.service | |
** Enable service ** | |
sudo systemctl enable assistant.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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