GoogleHome
Google Home
Install / Use
/learn @RootAccessHackerspace/GoogleHomeREADME
GoogleHome
Google Home
Username: rootaccess
Password: HACKTHEPLANET
Google Home Documentation: https://home-assistant.io/blog/2017/05/13/home-assistant-on-orange-pi-zero/
Audio Configuration: https://www.cnx-software.com/2017/07/30/how-to-setup-an-orange-pi-zero-diy-smart-speaker-with-google-assistant-sdk/
Steps:
(Steps are briefly taken from the audio configuration above)
- Create a project on the Google Cloud Platform
- Enable the Assistant API
- Create an Oath Client ID
- Download the .json file containing the client secrets.
- find Orange Pi ip address: http://angryip.org/
- Transfer the client secret .json to your Orange Pi.
- On your machine:
ssh rootaccess@IPAddress
On the Orange Pi
- Run the following block of commands:
sudo apt-get update
sudo apt-get install python3-dev python3-venv
python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools
source env/bin/activate
- Make sure that “Web & App Activity” with “Include Chrome browsing history and activity from websites and apps that use Google services” is checked, Device Information and Voice & Audio Activity are enabled in the Activity Control Page. This might already be set, depending on what you've done in the past.
- Now run
python -m pip install --upgrade google-assistant-libraryon the Orange Pi to install the Google Assistant SDK, andpython -m pip install --upgrade google-auth-oauthlib[tool]to install the authorization tool. - Run the authorization tool:
google-oauthlib-tool --client-secrets ~/client_secret_xxxx.apps.googleusercontent.com.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless, where the client_secret*.json file is what you transfered to the Orange Pi. - Now you can run the assistant!
google-assistant-demo
Having the assistant run automatically
/etc/systemd/system/google-assistant-demo.service:
[Unit]
Description=google assistant service
After=network.target ntpdate.service
[Service]
Type = idle
Environment=VIRTUAL_ENV=/home/pi/env/
Environment=PATH=/home/pi/env/bin:/usr/local/sbin:/usr/local
ExecStart=/home/pi/env/bin/google-assistant-demo
WorkingDirectory=/home/pi
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
Alias=google-assistant.service
Enable and start service:
sudo systemctl enable google-assistant-demo.service
sudo systemctl start google-assistant-demo.service
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
Security Score
Audited on Mar 23, 2025
