Giter Site home page Giter Site logo

google-home-rpi-autoboot's Introduction

Google-Home-RPi-AutoBoot

How to Automatically Boot your Raspberry Pi 3 into Google Voice Assistant with the AIY Voice Kit

You will need the Google AIY Voice Kit V1for this project. Check out my corresponding video here - https://youtu.be/dFL4ePKWfic

Please follow all instructions - https://aiyprojects.withgoogle.com/voice-v1/ and stop AFTER you have verified your project works here - https://aiyprojects.withgoogle.com/voice-v1/#users-guide-3-using-your-device

Video Tutorial from MicroCenter here - https://www.youtube.com/playlist?list=PL2vlFWOHEKMi_1vXEC5a-VaIe3qb7F3dw

To Auto-Boot into Google Home:

Open a Terminal on the Raspberry Pi Desktop.

Create the service file. Type:

sudo nano /etc/systemd/system/assist.service

Copy and paste all text in the assist.service file included in this repository.

[Unit]
Description=Assist @ reboot

[Service]
Environment=XDG_RUNTIME_DIR=/run/user/1000
ExecStart=/home/pi/AIY-projects-python/src/examples/voice/main.py
Restart=always
User=pi
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=assist

[Install]
WantedBy=multi-user.target

Control-X to exit, and Y to save. Press Enter to complete the save.

Next, copy your assistant demo to pi folder

cd ~/AIY-projects-python/src/examples/voice
cp assistant_library_demo.py main.py

Enable it (for next boot) by typing in the terminal:

sudo systemctl enable assist.service

Start it by typing:

sudo systemctl start assist.service

Reboot your Raspberry Pi

After you get it working, here are links to Easter Eggs / fun stuff to ask your Google Home

https://www.the-ambient.com/features/best-google-home-easter-eggs-166

https://www.pocket-lint.com/smart-home/news/google/143472-google-assistant-easter-eggs-your-complete-guide-to-hidden-assistant-commands

https://www.techadvisor.co.uk/feature/digital-home/funny-google-assistant-3659188/

google-home-rpi-autoboot's People

Contributors

carolinedunn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

google-home-rpi-autoboot's Issues

I don't understand the part of your instructions below

Next, copy your assistant demo to pi folder

cd ~/AIY-projects-python/src/examples/voice
cp assistant_library_demo.py main.py

This would just rename assistant_library_demo.py to main.py and it wouldn't copy it to /home/pi.
It took me 1/2 a day to get the voice AIY v1 running, but after three days I still can't get it to auto start so I can go headless so I thought maybe if I understood your instructions I could get this piece running.

how to stop the autoboot?

Hey I followed your instructions and they worked great! but if for some reason I need to reverse this function, how do I do that??? plz help.

Not working anymore

When your steps are followed this is what happens.

pi@raspberrypi:~ $ sudo service assistant status
โ— assistant.service - Assist @ reboot
Loaded: loaded (/home/pi/assistant.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Tue 2021-09-14 17:31:29 EDT; 994ms ago
Process: 2765 ExecStart=/home/pi/assistant.py (code=killed, signal=ABRT)
Main PID: 2765 (code=killed, signal=ABRT)

Sep 14 17:31:27 raspberrypi systemd[1]: Started Assist @ reboot.
Sep 14 17:31:29 raspberrypi assist[2765]: [FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Sep 14 17:31:29 raspberrypi systemd[1]: assistant.service: Main process exited, code=killed, status=6/ABRT
Sep 14 17:31:29 raspberrypi systemd[1]: assistant.service: Failed with result 'signal'.

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.