Giter Club home page Giter Club logo

snips-aiy's Introduction

snips-aiy

Use google https://aiyprojects.withgoogle.com/ hat with snips.ai and http://home-assistant.io This script will light up led on voice input and forward intents from snips mosquitto broker to home assistant mqtt broker. Additionaly it allows you to have multiple snips devices in house and forward tts to them

Make google voice hat work with snips

We need to clone snips aiy project repository and install all drivers:

cd /tmp
git clone https://github.com/google/aiyprojects-raspbian.git
cd aiyprojects-raspbian/

sudo configure-driver.sh
sudo install-alsa-config.sh

Now just reboot pi sudo reboot. After reboot we should only see one sound card device in our system:

run aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpigooglevoi [snd_rpi_googlevoicehat_soundcar], device 0: Google voiceHAT SoundCard HiFi voicehat-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and only one microphone device:

run arecord -l

**** List of CAPTURE Hardware Devices ****
card 0: sndrpigooglevoi [snd_rpi_googlevoicehat_soundcar], device 0: Google voiceHAT SoundCard HiFi voicehat-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Finally just record few sentences for test using voice hat microphone:

arecord -f cd out.wav

And play them from speaker:

aplay out.wav

Installation snips-aiy bridge

Clone this repository to /home/pi directory then run this commands:

cd /home/pi/snips-aiy
pip install -r requirements.txt
cp .asoundrc ~/.asoundrc
cp config/settings.yaml.example config/settings.yaml

Edit configuration under /home/pi/config/settings.yaml and after that run:

sudo cp systemd/snips-aiy.service /lib/systemd/system/
sudo systemctl enable snips-aiy
sudo systemctl start snips-aiy

snips-aiy's People

Contributors

macbury avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.