Processes sound and recognizes hotwords from a specified model. This container may be run locally using Docker, pushed to a Docker registry, and published to any Open Horizon exchange.
org
-[email protected]
url
-com.github.dcmartin.open-horizon.hotword
version
-0.0.1
HOTWORD_GROUP
- group name (aka top-level topic); defaults to"hotword"
HOTWORD_CLIENT
- client name; default:""
; set toHZN_DEVICE_ID
orhostname
HOTWORD_EVENT
- topic for sound event detected; default:"+/+/+/event/start"
HOTWORD_PAYLOAD
- extension to event topic to collect payload; default:"sound"
HOTWORD_MODEL
- default:"alexa"
HOTWORD_INCLUDE_WAV
- include audio as base64 encoded WAV; default:false
LOGTO
- specify place to log; default:"/dev/stderr"
; use""
for${TMPDIR}/${0##*/}.log
LOG_LEVEL
- specify level of logging; defaultinfo
; options include (debug
andnone
; currently ignored)DEBUG
- default:false
MQTT_PORT
- port number; defaults to1883
MQTT_USERNAME
- MQTT username; defaults to ""MQTT_PASSWORD
- MQTT password; defaults to ""
Copy this repository, change to the hotword
directory, then use the make command; see below:
% mkdir ~/gitdir
% cd ~/gitdir
% git clone https://github.com/dcmartin/open-horizon
% cd open-horizon/hotword
% make
...
The hotword
value will initially be incomplete until the service completes its initial execution. Subsequent tests should return a completed payload, see below:
% make check
EXAMPLE
Releases are based on Semantic Versioning, and use the format
of MAJOR.MINOR.PATCH
. In a nutshell, the version will be incremented
based on the following:
MAJOR
: Incompatible or major changes.MINOR
: Backwards-compatible new features and enhancements.PATCH
: Backwards-compatible bugfixes and package updates.