diff --git a/server.sh b/server.sh index e866133..06fb69b 100644 --- a/server.sh +++ b/server.sh @@ -62,12 +62,13 @@ _tts() { _stt() { log stt - pushd ./git.d/stt.d/rust-whisper.d/ ( export HOME="$PWD/mnt.d/stt.d" mkdir -p "$HOME" + cd "$HOME" + bash ../../git.d/stt.d/rust-whisper.d/download_models.sh if [ -n "$PIP" ]; then - pip3 install -r ./requirements.txt + pip3 install -r ../../git.d/stt.d/rust-whisper.d/requirements.txt fi local device=$( pactl list \ @@ -88,7 +89,7 @@ _stt() { ) | sudo tee /etc/asound.conf log launching stt ( - export HOTWORDS=../../../config.d/mayhem-party.d/v01.yaml@.users[].state.gm.alias + export HOTWORDS=../../config.d/mayhem-party.d/v01.yaml@.users[].state.gm.alias export MIC_TIMEOUT=2 export URL=http://localhost:17071/gm/rpc/broadcastSomeoneSaidAlias?message={{hotword}} export HEADERS=say="Eye herd {{hotword}}"