server loads hotwords models
parent
3f033a595f
commit
03615af983
|
|
@ -62,12 +62,13 @@ _tts() {
|
||||||
|
|
||||||
_stt() {
|
_stt() {
|
||||||
log stt
|
log stt
|
||||||
pushd ./git.d/stt.d/rust-whisper.d/
|
|
||||||
(
|
(
|
||||||
export HOME="$PWD/mnt.d/stt.d"
|
export HOME="$PWD/mnt.d/stt.d"
|
||||||
mkdir -p "$HOME"
|
mkdir -p "$HOME"
|
||||||
|
cd "$HOME"
|
||||||
|
bash ../../git.d/stt.d/rust-whisper.d/download_models.sh
|
||||||
if [ -n "$PIP" ]; then
|
if [ -n "$PIP" ]; then
|
||||||
pip3 install -r ./requirements.txt
|
pip3 install -r ../../git.d/stt.d/rust-whisper.d/requirements.txt
|
||||||
fi
|
fi
|
||||||
local device=$(
|
local device=$(
|
||||||
pactl list \
|
pactl list \
|
||||||
|
|
@ -88,7 +89,7 @@ _stt() {
|
||||||
) | sudo tee /etc/asound.conf
|
) | sudo tee /etc/asound.conf
|
||||||
log launching stt
|
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 MIC_TIMEOUT=2
|
||||||
export URL=http://localhost:17071/gm/rpc/broadcastSomeoneSaidAlias?message={{hotword}}
|
export URL=http://localhost:17071/gm/rpc/broadcastSomeoneSaidAlias?message={{hotword}}
|
||||||
export HEADERS=say="Eye herd {{hotword}}"
|
export HEADERS=say="Eye herd {{hotword}}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue