Giter Site home page Giter Site logo

assistants-pi's Introduction

Assistants-Pi

One installer for both Google Asistant and Amazon Alexa
Simultaneously run Google Assistant and Alexa on Raspberry Pi

Due to the 20th Dec update to Google Assistant SDK, the installation process has remarkably changed. Please Read through this document carefully
Refer to this video https://youtu.be/vprJBDDYE8Q for critical steps in Google Assistant installation


Before Starting the setup


For Google Assistant

  1. Download credentials--->.json file (refer to this doc for creating credentials https://developers.google.com/assistant/sdk/develop/python/config-dev-project-and-account)

  2. Place the .json file in/home/pi directory

  3. DO NOT RENAME THE JSON FILE

For Amazon Alexa

  1. 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


  1. Clone the git using:
git clone https://github.com/shivasiddharth/Assistants-Pi  
  1. 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  
  1. Prepare the system for installing assistants by updating, upgrading and setting up audio using:
sudo /home/pi/Assistants-Pi/prep-system.sh
  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. Test the audio setup using:
sudo /home/pi/Assistants-Pi/audio-test.sh  
  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/installer.sh  
  1. After verification of the assistants, to make them auto start on boot:
    Pi 3 and Pi2 users, open the gassistpi-ok-google.service in the /home/pi/Assistants-Pi/systemd folder and add your project-id and model-id in the indicated points.
    Pi Zero users, open the gassistpi-push-button.service in the /home/pi/Assistants-Pi/systemd folder and add your project-id and model-id in the indicated points.
    After that, open a terminal and run the following commands:
sudo chmod +x /home/pi/Assistants-Pi/scripts/service-installer.sh
sudo chmod +x /home/pi/Assistants-Pi/scripts/clientstart.sh  
sudo chmod +x /home/pi/Assistants-Pi/scripts/companionstart.sh  
sudo chmod +x /home/pi/Assistants-Pi/scripts/wakeword.sh  
sudo /home/pi/Assistants-Pi/scripts/service-installer.sh  
sudo systemctl enable companionapp.service
sudo systemctl enable client.service
sudo systemctl enable wakeword.service
sudo systemctl enable stopbutton.service

#If using Pi 2B or Pi 3B

sudo systemctl enable gassistpi-ok-google.service  

#If using Pi zero

sudo systemctl enable gassistpi-push-button.service  

assistants-pi's People

Contributors

shivasiddharth avatar adambutler avatar

Watchers

James Cloos avatar Rohan Vijay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.