Headless Google Assistant and Alexa on Raspberry Pi
18/01/2020: Routine update and bug fixes.
Before Starting the setup
For Google Assistant
For Amazon Alexa
Create a security profile for alexa-avs-sample-app if you already don't have one.
https://github.com/alexa/avs-device-sdk/wiki/Create-Security-Profile
Download the "config.json" file.
Setup Amazon Alexa, Google Assistant or Both
git clone https://github.com/shivasiddharth/Assistants-Pi
DO NOT RENAME THE CREDENTIALS FILEs
Place the Alexa config.json in file in the /home/pi/Assistants-Pi/Alexa directory.
Place the Google client_secret.....json file in the /home/pi/ directory.
sudo chmod +x /home/pi/Assistants-Pi/scripts/prep-system.sh
sudo chmod +x /home/pi/Assistants-Pi/scripts/audio-test.sh
sudo chmod +x /home/pi/Assistants-Pi/scripts/installer.sh
sudo /home/pi/Assistants-Pi/scripts/prep-system.sh
sudo reboot
sudo nano /etc/asound.conf
Open a second terminal and type:
sudo nano ~/.asoundrc
If the contents of .asoundrc are not same as asound.conf, copy the contents from asound.conf to .asoundrc, save using ctrl+x and y
sudo /home/pi/Assistants-Pi/scripts/audio-test.sh
sudo reboot
sudo /home/pi/Assistants-Pi/scripts/installer.sh
Open a terminal and run the following commands:
sudo chmod +x /home/pi/Assistants-Pi/scripts/service-installer.sh
sudo /home/pi/Assistants-Pi/scripts/service-installer.sh
For Alexa:
sudo systemctl enable alexa.service
For Google Assistant:
sudo systemctl enable google-assistant.service
sudo /home/pi/Assistants-Pi/Alexa/startsample.sh
Double click start.sh file in the /home/pi/Assistants-Pi/Alexa folder and choose to "Execute in the Terminal".
Open a terminal and execute the following:
/home/pi/env/bin/python -u /home/pi/Assistants-Pi/Google-Assistant/src/main.py --project_id 'replace this with the project id '--device_model_id 'replace this with the model id'