STORY
Assistants-Pi
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
_x0jdZKuPEB.png?auto=compress%2Cformat&w=680&h=510&fit=max)
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
_SkMnFJcicH.png?auto=compress%2Cformat&w=680&h=510&fit=max)
Setup Amazon Alexa, Google Assistant or Both
******************************************************************************************************
PREPARATION OF SYSTEM
******************************************************************************************************
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
First, OS will be updated and upgraded. Thereafter, you will be prompted to select the audio setup like shown below:
_Z2chmGaF4B.png?auto=compress%2Cformat&w=680&h=510&fit=max)
Restart the Pi using:
sudo reboot
******************************************************************************************************
AUDIO SETUP TEST
******************************************************************************************************
Test the audio setup using:
sudo /home/pi/Assistants-Pi/audio-test.sh
- You will be asked to confirm whether you are ready to test the speaker output as shown:
_ieOKZmgZZA.png?auto=compress%2Cformat&w=680&h=510&fit=max)
- You will then hear 2 cycles of test audio. After which you will be prompted again to confirm if you heard the speaker output audio as shown:
_zItyIBjQEz.png?auto=compress%2Cformat&w=680&h=510&fit=max)
- After this, you will be asked to confirm if you are ready to test the mic as shown:
_EjOn5Q97ne.png?auto=compress%2Cformat&w=680&h=510&fit=max)
- You will receive a prompt to select the audio configuration you chose to setup. This is to identify the hardware id of mic to carry out the test:
_xcgKGHfMT5.png?auto=compress%2Cformat&w=680&h=510&fit=max)
- After the audio sample is recorded, it will automatically playback and you will be asked to confirm if you heard the recorded audio.
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
At the start, you will be prompted to select your assistant. Select “Both” option to install bothe Alexa and Google Assistant

After this you will be asked to enter the Alexa Security profile details that you earlier created and once the alexa installation is complete, you will be asked to confirm whether the google credentials file had been placed in the /home/pi/ directory.After confirmation, Google Assistant installation will start.
After both the assistants are installed, the end screen will ask you to authenticate Alexa before restarting as shown:
_CArZEcw3tG.png?auto=compress%2Cformat&w=680&h=510&fit=max)
After authenticating Alexa, restart the Pi to enjoy headless 2 in 1 Assistants-Pi
Project taken from:
https://www.hackster.io/shiva-siddharth/simultaneously-run-alexa-and-google-assistant-on-pi-12e8df