parent
b2654a10b2
commit
3a36333ef6
|
|
@ -40,7 +40,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 '( 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"; 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 '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 []
|
||||
|
|
|
|||
|
|
@ -35,6 +35,12 @@ See `./config.d/rusty-pipe.d`
|
|||
|
||||
# Server
|
||||
|
||||
### Docker
|
||||
|
||||
```bash
|
||||
docker build -f Dockerfile -t mayhem-party-venue . && docker run -p 17070-17071:17070-17071 --rm -it -v /run/user/$UID/pulse/native:/run/user/0/pulse/native -e PULSE_SERVER=unix:/run/user/0/pulse/native -v "$PWD"/mnt.d:/mnt mayhem-party-venue
|
||||
```
|
||||
|
||||
## TTS
|
||||
|
||||
`cd ./git.d/tts.d/larynx.d; bash run.sh`
|
||||
|
|
|
|||
Loading…
Reference in New Issue