announcement-box/bin/announcement-server
2021-01-09 14:22:58 +01:00

22 lines
270 B
Bash
Executable File

#!/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