mature
parent
463314ef2e
commit
c4864a380d
|
|
@ -1 +1 @@
|
||||||
Subproject commit 599f9079d3544c1fbdaf696c0d703432305e7dae
|
Subproject commit 0e6c12a94f97c63420e25f03f393b54b0a9f5ab0
|
||||||
18
server.sh
18
server.sh
|
|
@ -49,22 +49,24 @@ _mayhem_party() {
|
||||||
(
|
(
|
||||||
source ./config.d/mayhem-party.d/env.env
|
source ./config.d/mayhem-party.d/env.env
|
||||||
./git.d/mayhem-party.d/mayhem-party
|
./git.d/mayhem-party.d/mayhem-party
|
||||||
) &> /tmp/mayhem-party.mayhem-party.log &
|
) &
|
||||||
}
|
}
|
||||||
|
|
||||||
_tts() {
|
_tts() {
|
||||||
log tts
|
log launching tts
|
||||||
(
|
(
|
||||||
cd ./git.d/tts.d/larynx.d/
|
cd ./git.d/tts.d/larynx.d/
|
||||||
bash ./run.sh
|
bash ./run.sh
|
||||||
) &> /tmp/mayhem-party.mayhem-party.log &
|
) &
|
||||||
}
|
}
|
||||||
|
|
||||||
_stt() {
|
_stt() {
|
||||||
log stt
|
log stt
|
||||||
pushd ./git.d/stt.d/rust-whisper.d/
|
pushd ./git.d/stt.d/rust-whisper.d/
|
||||||
|
(
|
||||||
|
export HOME="$PWD/mnt.d/stt.d"
|
||||||
|
mkdir -p "$HOME"
|
||||||
pip3 install -r ./requirements.txt
|
pip3 install -r ./requirements.txt
|
||||||
log launching stt
|
|
||||||
local device=$(
|
local device=$(
|
||||||
pactl list \
|
pactl list \
|
||||||
| grep Monitor.Source \
|
| grep Monitor.Source \
|
||||||
|
|
@ -82,20 +84,18 @@ _stt() {
|
||||||
echo " device $device"
|
echo " device $device"
|
||||||
echo "}"
|
echo "}"
|
||||||
) | sudo tee /etc/asound.conf
|
) | sudo tee /etc/asound.conf
|
||||||
|
log launching stt
|
||||||
(
|
(
|
||||||
export HOME="$PWD/mnt.d/stt.d"
|
|
||||||
mkdir -p "$HOME"
|
|
||||||
cd "$HOME"
|
|
||||||
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}}"
|
||||||
export MIC_NAME=pulse_monitor
|
export MIC_NAME=pulse_monitor
|
||||||
export DEBUG=true
|
|
||||||
export MODEL=tiny.en
|
export MODEL=tiny.en
|
||||||
export P=2
|
export P=2
|
||||||
python3 ./hotwords.py
|
python3 ./hotwords.py
|
||||||
) &> /tmp/mayhem-party.stt.log &
|
) &
|
||||||
|
)
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue