Awesome Open Source
Awesome Open Source


One installer for both Google Asistant and Amazon Alexa

Simultaneously run Google Assistant and Alexa on Raspberry Pi

If you like the work, find it useful and if you would like to get me a ☕️ 😄 paypal


18/01/2020: Routine update and bug fixes.

Before Starting the setup

For Google Assistant

  1. Create a project in the Google's Action Console.
  2. Download credentials--->.json file (refer to this doc for creating credentials

For Amazon Alexa

  1. Create a security profile for alexa-avs-sample-app if you already don't have one.

  2. Download the "config.json" file.

Setup Amazon Alexa, Google Assistant or Both

  1. Clone the git using:
git clone  

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.

  1. Make the installers executable using:
sudo chmod +x /home/pi/Assistants-Pi/scripts/    
sudo chmod +x /home/pi/Assistants-Pi/scripts/   
sudo chmod +x /home/pi/Assistants-Pi/scripts/  
  1. Prepare the system for installing assistants by updating, upgrading and setting up audio using:
sudo /home/pi/Assistants-Pi/scripts/
  1. Restart the Pi using:
sudo reboot
  1. 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

  1. Bonus Script - Test the audio setup using the following code (optional). Dont panic if the test does not go through successfully, proceed with the installation:
sudo /home/pi/Assistants-Pi/scripts/  
  1. Restart the Pi using:
sudo reboot
  1. Install the assistant/assistants using the following. This is an interactive script, so just follow the onscreen instructions:
sudo /home/pi/Assistants-Pi/scripts/  
  1. After verification of the assistants, to make them auto start on boot:

Open a terminal and run the following commands:

sudo chmod +x /home/pi/Assistants-Pi/scripts/
sudo /home/pi/Assistants-Pi/scripts/  

For Alexa:

sudo systemctl enable alexa.service  

For Google Assistant:

sudo systemctl enable google-assistant.service  
  1. Authorize Alexa before restarting
sudo /home/pi/Assistants-Pi/Alexa/  

Manually Start The Alexa Assistant

Double click file in the /home/pi/Assistants-Pi/Alexa folder and choose to "Execute in the Terminal".

Manually Start The Google Assistant

Open a terminal and execute the following:

/home/pi/env/bin/python -u /home/pi/Assistants-Pi/Google-Assistant/src/ --project_id 'replace this with the project id '--device_model_id 'replace this with the model id'

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (51,910
raspberry-pi (627
sdk (504
google (397
alexa (64
assistant (55
google-assistant (29
amazon-alexa (18

Find Open Source By Browsing 7,000 Topics Across 59 Categories