From f689423ade853530403e8da5050a6921938b03e1 Mon Sep 17 00:00:00 2001 From: bel Date: Tue, 28 Mar 2023 20:32:47 -0600 Subject: [PATCH] dockerfile for initializing and listening to stdout --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5aa5a97..c6039e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,7 @@ COPY ./config.d/ /config.d/ RUN echo 'date' > /entrypoint.sh \ && echo 'cleanup() { kill -9 $(jobs -p); wait; }; trap cleanup EXIT' >> /entrypoint.sh \ && echo '( export HOME=/mnt/tts.d; mkdir -p "$HOME"; cd "$HOME"; while true; do larynx-server --port 15002; sleep 5; done ) &' >> /entrypoint.sh \ - && echo '( export HOME=/mnt/stt.d; mkdir -p "$HOME"; cd "$HOME"; while true; do cd /stt.d/whisper-2023; HOTWORDS=/config.d/mayhem-party.d/v01.yaml@.users[].state.gm.alias MIC_TIMEOUT=2 URL=http://localhost:17071/gm/rpc/broadcastSomeoneSaidAlias?message={{hotword}} HEADERS=say="Eye herd {{hotword}}" MIC_NAME=pulse python3 ./hotwords.py; sleep 5; done ) &' >> /entrypoint.sh \ + && echo '( export HOME=/mnt/stt.d; mkdir -p "$HOME"; cd "$HOME"; device=$(pactl list | grep Monitor.Source | grep -v hdmi | awk "{print \$NF}" | head -n 1); (echo "pcm.pulse_monitor {"; echo "type pulse"; echo "device $device"; echo "}"; echo "ctl.pulse_monitor {"; echo "type pulse"; echo "device $device"; echo "}") > /etc/asound.conf; while true; do cd /stt.d/whisper-2023; HOTWORDS=/config.d/mayhem-party.d/v01.yaml@.users[].state.gm.alias MIC_TIMEOUT=2 URL=http://localhost:17071/gm/rpc/broadcastSomeoneSaidAlias?message={{hotword}} HEADERS=say="Eye herd {{hotword}}" MIC_NAME=pulse_monitor python3 ./hotwords.py; sleep 5; done ) &' >> /entrypoint.sh \ && echo 'echo running mayhem party; source /config.d/mayhem-party.d/env.env; if ! /bin/mayhem-party; then echo mayhem-party failure; exit 1; fi' >> /entrypoint.sh ENTRYPOINT []