Brak opisu

Martin c49a6f328d switch lights-on condition from time to sun.elevation 6 lat temu
.vscode 307f0ca9f8 pythonpath 10 lat temu
hass c49a6f328d switch lights-on condition from time to sun.elevation 6 lat temu
lib e6c142b0fe #21 add snowboy lib for rpi3 9 lat temu
resources d1beaef950 initial commit 10 lat temu
voice_control ad5f9b4b01 improve hotword detector test method 7 lat temu
.gitignore b189ac2494 refactor configuration structure 7 lat temu
README.md 8625cde3f4 readme instructions 7 lat temu
hass-snips-readme.txt ce38509e24 updated hass confs and manuals 7 lat temu
requirements.txt 60dac22f9b improved installation instructions 7 lat temu

README.md

Voice Control

Linux:

aptitude install alsa-base alsa-utils alsa-tools libasound-dev python-virtualenv python-pip python-dev libportaudio2 flac libatlas-base-dev libsdl1.2-dev

enable apt src url(s)

aptitude build-dep python-pygame

PortAudio:

[PortAudio is very old -- should probably not use this]
linux: http://portaudio.com/download.html, download, configure, make, make install
osx: brew install portaudio

jackd1, portaudio

add user to audio group: sudo usermod -a -G audio martin

aptitude install pulseaudio

https://unix.stackexchange.com/questions/114602/pulseaudio-sink-always-suspended http://jackaudio.org/faq/pulseaudio_and_jack.html

upgrade to buster, see if updated pulseaudio works better

set up a virtualenv, install python requirements, and link to a speech_recognition and snowboy dist folder from inside the venv python lib folder

environment variables:

  • PYTHONPATH (set to current dir)
  • GOOGLE_APPLICATION_CREDENTIALS (set to gcloud credentials path)