this isnt working boo
parent
1927458538
commit
f034d21598
12
server.sh
12
server.sh
|
|
@ -70,6 +70,9 @@ _stt() {
|
||||||
if [ -n "$PIP" ]; then
|
if [ -n "$PIP" ]; then
|
||||||
pip3 install -r ../../git.d/stt.d/rust-whisper.d/requirements.txt
|
pip3 install -r ../../git.d/stt.d/rust-whisper.d/requirements.txt
|
||||||
fi
|
fi
|
||||||
|
for i in $(pactl list short modules | grep secret | cut -f1); do
|
||||||
|
pactl unload-module $i
|
||||||
|
done
|
||||||
local device=$(
|
local device=$(
|
||||||
pactl list \
|
pactl list \
|
||||||
| grep Monitor.Source \
|
| grep Monitor.Source \
|
||||||
|
|
@ -87,13 +90,20 @@ _stt() {
|
||||||
echo " device $device"
|
echo " device $device"
|
||||||
echo "}"
|
echo "}"
|
||||||
) | sudo tee /etc/asound.conf
|
) | sudo tee /etc/asound.conf
|
||||||
|
|
||||||
|
name='my_secret_sink'
|
||||||
|
if ! pactl list | grep -q $name; then
|
||||||
|
pactl load-module module-null-sink sink_name=$name channels=1
|
||||||
|
pactl load-module module-remap-source master=$name.monitor source_name=shared-$name source_properties="device.description=shared-$name" channels=1
|
||||||
|
fi
|
||||||
|
|
||||||
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}}"
|
||||||
export MIC_NAME=pulse_monitor
|
export MIC_NAME="${MIC_NAME:-$mic_name}"
|
||||||
export MODEL=tiny.en
|
export MODEL=tiny.en
|
||||||
export P=2
|
export P=2
|
||||||
python3 ../../git.d/stt.d/rust-whisper.d/hotwords.py
|
python3 ../../git.d/stt.d/rust-whisper.d/hotwords.py
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue