announcement-box/bin/announcement-server

22 lines
270 B
Plaintext
Raw Normal View History

2021-01-09 13:22:58 +00:00
#!/bin/bash
source pa-lib
while [[ true ]]; do
# waiting for the PSA text stream to start
read
pa-preheat
pa-announcement
pa-say "$REPLY"
while read -t 4; do
pa-say "$REPLY"
done
# no more text, terminate the PSA
pa-announcement-quick
pa-shutdown
done