server loads hotwords models

master
bel 2023-03-31 22:31:08 -06:00
parent 3f033a595f
commit 03615af983
1 changed files with 4 additions and 3 deletions

View File

@ -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}}"