One installer for both Google Asistant and Amazon Alexa
Simultaneously run Google Assistant and Alexa on Raspberry Pi
Before Starting the setup
For Google Assistant
-
Download credentials--->.json file (refer to this doc for creating credentials https://developers.google.com/assistant/sdk/develop/python/config-dev-project-and-account)
-
Place the .json file in/home/pi directory
-
Rename it to assistant--->assistant.json
For Amazon Alexa
- Create a security profile for alexa-avs-sample-app if you already don't have one.
https://github.com/alexa/alexa-avs-sample-app/wiki/Create-Security-Profile
Setup Amazon Alexa, Google Assistant or Both
- Clone the git using:
git clone https://github.com/shivasiddharth/Assistants-Pi
- Make the installers executable using:
sudo chmod +x /home/pi/Assistants-Pi/prep-system.sh
sudo chmod +x /home/pi/Assistants-Pi/audio-test.sh
sudo chmod +x /home/pi/Assistants-Pi/installer.sh
- Prepare the system for installing assistants by updating, upgrading and setting up audio using:
sudo /home/pi/Assistants-Pi/prep-system.sh
- Restart the Pi using:
sudo reboot
- Make sure that contents of asoundrc match the contents of asound.conf
Open a terminal and type:
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
- Test the audio setup using:
sudo /home/pi/Assistants-Pi/audio-test.sh
- Restart the Pi using:
sudo reboot
- Install the assistant/assistants using the following. This is an interactive script, so just follow the onscreen instructions:
sudo /home/pi/Assistants-Pi/installer.sh