Application - Google Assistant

出自 flip the world
於 2018年8月23日 (四) 10:49 由 Tommy (對話 | 貢獻) 所做的修訂
前往: 導覽搜尋

Alexa Logo 檔案:Sym plus.jpg Google_assistant Logo

Hardware

  • PRi
  • Speake
  • Microphone

OS

  • Raspbian

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