#!/bin/sh # wyoming-satellite + openWakeWord, opt-in (docs/project-plan.md Phase 6/17) — this is # what makes voice registration ("register me as ") possible on this device. # Identical logic to hosts/thin-client's 0600-voice-satellite.hook.chroot. set -eu . /etc/kitchen-display-agent/config.env if [ "${ENABLE_VOICE_SATELLITE}" != "true" ]; then echo "0400-voice-satellite: ENABLE_VOICE_SATELLITE is false, skipping (this is the" echo " default — voice registration needs a real microphone; don't enable this" echo " until one is attached)." exit 0 fi VENV=/opt/voice-satellite/venv python3 -m venv "$VENV" "$VENV/bin/pip" install --upgrade pip wheel setuptools # VERIFY BEFORE THE FIRST REAL BUILD — same caveat as the thin client's identical # hook: upstream's documented install path is a git clone + script/setup rather than # PyPI. If either name isn't on PyPI, fall back to that instead. if ! "$VENV/bin/pip" install wyoming-satellite wyoming-openwakeword; then echo "0400-voice-satellite: WARNING — pip install failed. Fall back to the upstream" echo " git-clone install: https://github.com/rhasspy/wyoming-satellite" exit 0 fi cat > /etc/systemd/system/wyoming-openwakeword.service < /etc/systemd/system/wyoming-satellite.service <