From d7e7a07f6efacae8b9fbc6a9915147e2c0484434 Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 31 Mar 2023 22:12:57 -0600 Subject: [PATCH] server.sh to run all --- config.d/mayhem-party.d/v01.yaml | 4 ++-- git.d/tts.d | 2 +- server.sh | 12 +++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config.d/mayhem-party.d/v01.yaml b/config.d/mayhem-party.d/v01.yaml index f82e005..2d83feb 100644 --- a/config.d/mayhem-party.d/v01.yaml +++ b/config.d/mayhem-party.d/v01.yaml @@ -4,8 +4,8 @@ feedback: users: bel: meta: - lasttsms: 1680052450309 - lastlag: 676 + lasttsms: 1680322362904 + lastlag: 0 state: player: 2 message: "" diff --git a/git.d/tts.d b/git.d/tts.d index 86b67db..ce354d1 160000 --- a/git.d/tts.d +++ b/git.d/tts.d @@ -1 +1 @@ -Subproject commit 86b67db949e686ae570b73ede729f4efd3216044 +Subproject commit ce354d17885feb509dd3ecee68843e1c6e2c2957 diff --git a/server.sh b/server.sh index 339da28..e866133 100644 --- a/server.sh +++ b/server.sh @@ -54,10 +54,10 @@ _mayhem_party() { _tts() { log launching tts - ( - cd ./git.d/tts.d/larynx.d/ - bash ./run.sh - ) & + pushd ./git.d/tts.d/larynx.d/ + chmod -R 777 ./mnt.d || true + bash ./run.sh + popd } _stt() { @@ -66,7 +66,9 @@ _stt() { ( export HOME="$PWD/mnt.d/stt.d" mkdir -p "$HOME" - pip3 install -r ./requirements.txt + if [ -n "$PIP" ]; then + pip3 install -r ./requirements.txt + fi local device=$( pactl list \ | grep Monitor.Source \