mature
This commit is contained in:
66
server.sh
66
server.sh
@@ -49,53 +49,53 @@ _mayhem_party() {
|
||||
(
|
||||
source ./config.d/mayhem-party.d/env.env
|
||||
./git.d/mayhem-party.d/mayhem-party
|
||||
) &> /tmp/mayhem-party.mayhem-party.log &
|
||||
) &
|
||||
}
|
||||
|
||||
_tts() {
|
||||
log tts
|
||||
log launching tts
|
||||
(
|
||||
cd ./git.d/tts.d/larynx.d/
|
||||
bash ./run.sh
|
||||
) &> /tmp/mayhem-party.mayhem-party.log &
|
||||
) &
|
||||
}
|
||||
|
||||
_stt() {
|
||||
log stt
|
||||
pushd ./git.d/stt.d/rust-whisper.d/
|
||||
pip3 install -r ./requirements.txt
|
||||
log launching stt
|
||||
local device=$(
|
||||
pactl list \
|
||||
| grep Monitor.Source \
|
||||
| grep -v hdmi \
|
||||
| awk "{print \$NF}" \
|
||||
| head -n 1
|
||||
)
|
||||
(
|
||||
echo "pcm.pulse_monitor {"
|
||||
echo " type pulse"
|
||||
echo " device $device"
|
||||
echo "}"
|
||||
echo "ctl.pulse_monitor {"
|
||||
echo " type pulse"
|
||||
echo " device $device"
|
||||
echo "}"
|
||||
) | sudo tee /etc/asound.conf
|
||||
(
|
||||
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 MIC_TIMEOUT=2
|
||||
export URL=http://localhost:17071/gm/rpc/broadcastSomeoneSaidAlias?message={{hotword}}
|
||||
export HEADERS=say="Eye herd {{hotword}}"
|
||||
export MIC_NAME=pulse_monitor
|
||||
export DEBUG=true
|
||||
export MODEL=tiny.en
|
||||
export P=2
|
||||
python3 ./hotwords.py
|
||||
) &> /tmp/mayhem-party.stt.log &
|
||||
pip3 install -r ./requirements.txt
|
||||
local device=$(
|
||||
pactl list \
|
||||
| grep Monitor.Source \
|
||||
| grep -v hdmi \
|
||||
| awk "{print \$NF}" \
|
||||
| head -n 1
|
||||
)
|
||||
(
|
||||
echo "pcm.pulse_monitor {"
|
||||
echo " type pulse"
|
||||
echo " device $device"
|
||||
echo "}"
|
||||
echo "ctl.pulse_monitor {"
|
||||
echo " type pulse"
|
||||
echo " device $device"
|
||||
echo "}"
|
||||
) | sudo tee /etc/asound.conf
|
||||
log launching stt
|
||||
(
|
||||
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}}"
|
||||
export MIC_NAME=pulse_monitor
|
||||
export MODEL=tiny.en
|
||||
export P=2
|
||||
python3 ./hotwords.py
|
||||
) &
|
||||
)
|
||||
popd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user