From 03615af983c006670660e7cc965812a7538d3e96 Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 31 Mar 2023 22:31:08 -0600 Subject: [PATCH] server loads hotwords models --- server.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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}}"