{"id":16521885,"url":"https://github.com/shivasiddharth/assistants-pi","last_synced_at":"2025-04-06T00:10:41.736Z","repository":{"id":53529963,"uuid":"107808293","full_name":"shivasiddharth/Assistants-Pi","owner":"shivasiddharth","description":"Headless  Google Assistant and Alexa on Raspberry Pi","archived":false,"fork":false,"pushed_at":"2021-11-26T04:14:44.000Z","size":10957,"stargazers_count":347,"open_issues_count":37,"forks_count":113,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-03-29T23:11:11.604Z","etag":null,"topics":["alexa","alexa-avs-sample","alexa-avs-sample-app","alexa-voice-service","amazon-alexa","assistant","assistants-pi","avs-sdk","gassistpi","google","google-assistant","google-assistant-sdk","raspberry-pi","sdk"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shivasiddharth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["shivasiddharth"]}},"created_at":"2017-10-21T19:08:16.000Z","updated_at":"2025-02-21T15:49:46.000Z","dependencies_parsed_at":"2022-09-04T15:13:38.327Z","dependency_job_id":null,"html_url":"https://github.com/shivasiddharth/Assistants-Pi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasiddharth%2FAssistants-Pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasiddharth%2FAssistants-Pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasiddharth%2FAssistants-Pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivasiddharth%2FAssistants-Pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivasiddharth","download_url":"https://codeload.github.com/shivasiddharth/Assistants-Pi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415973,"owners_count":20935387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alexa","alexa-avs-sample","alexa-avs-sample-app","alexa-voice-service","amazon-alexa","assistant","assistants-pi","avs-sdk","gassistpi","google","google-assistant","google-assistant-sdk","raspberry-pi","sdk"],"created_at":"2024-10-11T16:58:19.437Z","updated_at":"2025-04-06T00:10:41.718Z","avatar_url":"https://github.com/shivasiddharth.png","language":"Python","funding_links":["https://github.com/sponsors/shivasiddharth","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=7GH3YDCHZ36QN"],"categories":[],"sub_categories":[],"readme":"# Assistants-Pi\n## One installer for both Google Asistant and Amazon Alexa   \n## Simultaneously run Google Assistant and Alexa on Raspberry Pi    \n*******************************************************************************************************************************\n### **If you like the work, find it useful and if you would like to get me a :coffee: :smile:** [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=7GH3YDCHZ36QN)  \n\n*******************************************************************************************************************************\n### Note:\n**18/01/2020: Routine update and bug fixes.**  \n****************************************************************\n**Before Starting the setup**\n****************************************************************\n**For Google Assistant**  \n1. Create a project in the Google's Action Console.    \n2. Download credentials---\u003e.json file (refer to this doc for creating credentials https://developers.google.com/assistant/sdk/develop/python/config-dev-project-and-account)   \n\n\n**For Amazon Alexa**  \n1. Create a security profile for alexa-avs-sample-app if you already don't have one.  \nhttps://github.com/alexa/avs-device-sdk/wiki/Create-Security-Profile  \n\n2. Download the **\"config.json\"** file. \n\n\n***************************************************************\n**Setup Amazon Alexa, Google Assistant or Both**     \n***************************************************************\n1. Clone the git using:\n```\ngit clone https://github.com/shivasiddharth/Assistants-Pi  \n```    \n**DO NOT RENAME THE CREDENTIALS FILEs**     \nPlace the Alexa **config.json in** file in the  **/home/pi/Assistants-Pi/Alexa** directory.        \nPlace the Google **client_secret.....json** file in the **/home/pi/** directory.     \n\n2. Make the installers executable using:\n```\nsudo chmod +x /home/pi/Assistants-Pi/scripts/prep-system.sh    \nsudo chmod +x /home/pi/Assistants-Pi/scripts/audio-test.sh   \nsudo chmod +x /home/pi/Assistants-Pi/scripts/installer.sh  \n```    \n\n3. Prepare the system for installing assistants by updating, upgrading and setting up audio using:  \n```\nsudo /home/pi/Assistants-Pi/scripts/prep-system.sh\n```    \n\n4. Restart the Pi using:\n```\nsudo reboot\n```    \n\n5. Make sure that contents of asoundrc match the contents of asound.conf    \n   Open a terminal and type:  \n```\nsudo nano /etc/asound.conf\n```\n   Open a second terminal and type:    \n```\nsudo nano ~/.asoundrc\n```  \n   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\n\n6. 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**:  \n```\nsudo /home/pi/Assistants-Pi/scripts/audio-test.sh  \n```     \n\n7. Restart the Pi using:\n```\nsudo reboot\n```      \n\n8. Install the assistant/assistants using the following. This is an interactive script, so just follow the onscreen instructions:\n```\nsudo /home/pi/Assistants-Pi/scripts/installer.sh  \n```      \n\n9. After verification of the assistants, to make them auto start on boot:  \n\nOpen a terminal and run the following commands:  \n```\nsudo chmod +x /home/pi/Assistants-Pi/scripts/service-installer.sh\nsudo /home/pi/Assistants-Pi/scripts/service-installer.sh  \n```\nFor Alexa:  \n```\nsudo systemctl enable alexa.service  \n```\nFor Google Assistant:  \n```\nsudo systemctl enable google-assistant.service  \n```\n\n10. Authorize Alexa before restarting  \n```\nsudo /home/pi/Assistants-Pi/Alexa/startsample.sh  \n```\n\n### Manually Start The Alexa Assistant   \nDouble click start.sh file in the /home/pi/Assistants-Pi/Alexa folder and choose to \"Execute in the Terminal\".       \n\n### Manually Start The Google Assistant\nOpen a terminal and execute the following:\n```\n/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'\n```   \n\n#### If you have issues with the Assistants strating on boot, you may have to setup PulseAudio as a system wide service. For further details refer this git https://github.com/shivasiddharth/PulseAudio-System-Wide      \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivasiddharth%2Fassistants-pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivasiddharth%2Fassistants-pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivasiddharth%2Fassistants-pi/lists"}