Sign inSign up

janvda/voice-kit-controller

By janvda

Updated almost 3 years ago

Image
0

2.7K

janvda/voice-kit-controller repository overview

voice-kit-controller

Github: janvda/my-google-voice-kit/controller

The voice-kit-controller is a node-red application providing

  • a dashboard (ui) to:
    • control the volume
    • start/stop vrt radio news
    • play one of the many radio channels

Configuration

Locations for "will it rain" intent

The file global_context_my_locations.json specifies 2 global context variables:

global context variabledescription
my_locationsarray of locations with name and latitude and longitude coordinates
current_location_idxindex of default location (0 = 1st location in array)

It is possible to change the default location using the "My Location" tab of the Voice-Kit dashboard. This change will be persisted so that it is remembered even after a reboot.

FYI Saving context data to the file-system has been configured in settings.js so that changes to above global context variables become automatically persisted.

If you want to support other locations then you must update global_context_my_locations.json and rebuild the voice-kit-controller image.

Internet radio channels

radio.m3u defines the playlist of internet radio channels. Note that this list is tightly coupled to node-red flow tab mpd2.

See also common playlist folder below.

prerequisites

pigpiod

If you want to use the Voice-Kit button and control the voice-kit LED (= LED in the button) then pigpiod must be installed on the host using port 8888.

common playlist folder

The webradio playlist (radio.m3u) will only work if folder /playlists/ is common with mpd service. In other words the same docker volume is mapped to this folder in both services (controller and mpd)

Change History

  • version 1.23.1 : fix issue with same mqtt client id used by dev and prod version.
  • version 1.23.0 : added SetHeating intent
  • version 1.22.1 : assured that it uses the cache for the apk installed packaged when building the docker image
  • version 1.22.0 : new intents: PlayRadioLageLanden, VolumeNormal, VolumeUp, VolumeDown
  • version 1.21.1 : Will it Rain also reports mm rain instead of only probability.
  • version 1.21.0 : Will it Rain intent supports 3 locations. Using dashboard it is possible to change the default location.
  • version 1.20.0 : added duration of dry period to Will it Rain output.
  • version 1.19.0 : Will it Rain intent also uses open-meteo data for rain forecast; Button LED will not show SLOW_PULSE when vrt news is playing.
  • version 1.18.0 : used host.docker.internal as host for pigpiod instead of env variable PIGPIOD, removed RPi.GPIO stuff from dockerfile
  • version 1.17.0 : uses pigpiod (on host) and env variable PIGPIOD
  • version 1.16.0 : setting LED state based on rhasspy state + upgraded node-red dashboard to 3.6.0
  • version 1.15.0 : LED states 25%, 50% and 70% added + brightness rescaled for pwm %
  • version 1.14.0 : voicehat LED control added + LED tab added to dashboard to test this.
  • version 1.13.0 : Volume Control tab: added slider to set volume of all clients at once; when radio news or mpd is playing wake word detection is disabled.
  • version 1.12.0 : added group pa_volume in tab `Volume Control`` allowing to control volume of all clients (also those clients that are not running.)
  • version 1.11.0 : same as 1.10.0 but this time also build for linux/arm64/v8 and linux/amd64
  • version 1.10.0 : upgraded to version nodered/node-red:3.1.0-18 only build for linux/arm/v7
  • version 1.9.0 : Will it Rain intent added.
  • version 1.8.0 : stop timer intent added + tts (dutch) feedback
  • version 1.7.0 : alarm added + rhasspy dashboard
  • version 1.6.0 : side menu hidden = nicer display on mobile phone
  • version 1.5.0 : copies radio playlist to /playlists folder (= volume)
  • version 1.4.0 : web radio (integration with mpd service)
  • version 1.3.0 : removed encryption credential file and used voice-kit-mqtt-broker
  • version 1.2.0 : added buttons to dashboard to start and stop vrt news radio
  • version 1.1.0 : added volume control dashboard + play latest radio vrt news
  • version 1.0.0 : initial version

Tag summary

Content type

Image

Digest

sha256:3b2115fb0

Size

243.1 MB

Last updated

almost 3 years ago

docker pull janvda/voice-kit-controller