模板:Big
Hardware
OS
Assistant Pi
AssistantPi is basically a tweak of AlexaPi allowing you to run Google Assistant and Amazon's Alexa on a Raspberry Pi. It includes the Google Assistant SDK and uses AlexaPi's hotword recognition to activate either Assistant or Alexa. The installer provides an easy way to get everything set up in just under an hour.
This is just an experimental proof-of-concept without broad support.
Credits / Further Resources:
AlexaPi on Github
AlexaPi Installation Guide
Google Assistant SDK on Github
Google Assistant SDK Getting Started Guide
Alexa
- To start AssistantPi in debugging mode, stop the service (if running) and run the script with the -d flag:
- sudo systemctl stop AlexaPi.service
- python /opt/AlexaPi/src/main.py -d
Google assistant
- To start the embedded Google Assistant SDK, run
- /opt/AlexaPi/env/bin/python -m googlesamples.assistant --credentials /etc/opt/AlexaPi/assistant_credentials.json
# same as running
### source /opt/AlexaPi/env/bin/activate
### python -m googlesamples.assistant --credentials /etc/opt/AlexaPi/assistant_credentials.json
Reference