Add continuous announcement server.

This commit is contained in:
Dejvino
2021-01-09 14:22:58 +01:00
parent ccc5c82dba
commit 0cf4c4890d
2 changed files with 41 additions and 5 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/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