Speaktime wavplay problem Debian Buster on PiRLP
I recently restored our note (stn3671) from a backup file - apparently the SD card failed. I followed the instructions here: http://www.irlp.net/pi/directions.txt
This is a PiRLP purchased from irlp.net; so it has the "features" directory with several functions including speaktime. The speaktime function does not output any audio. The function will PTT the repeater, but no audio is played. Research on the topic led me to investigate permissions, file locations, etc. as this the most likely problem (e.g. wavplay can't find the audio file). I have done this manually at the command line:
And the audio output performs as intended.
Also, speakdate works just as it's supposed to.
I've checked permissions, the symlink (from $AUDIO/custom/speaktime -> to features/speaktime/audio)
When running wavplay from the command line; it doesn't produce any audio, either. Such as...
repeater@stn3671:~/scripts$ ./wavplay ref9990
repeater@stn3671:~/scripts$ ./wavplay /custom/speaktime/the_time_is
From Dave Parks' instructions on another post (#65745), I did this
repeater@stn3671:~/features/speaktime$ bash -x ./speaktime
and received this (std) output...
+ '[' -z /home/irlp/custom ']'
+ source /home/irlp/custom/irlp_common.sh
++ '[' repeater '!=' repeater ']'
++ '[' TRUE '!=' TRUE ']'
+ say the_time_is
+ '[' '!' -f /home/irlp/audio/custom/speaktime/the_time_is.ul ']'
+ SAYFILES=' custom/speaktime/the_time_is'
++ /bin/date '+%H %M %S %p'
+ set -hxB 08 55 31 AM
+ case $h in
+ saynumber 08 n
++ expr 08 / 10
++ expr 08 % 10
+ set -hxB 0 8
+ case $tens in
+ case $zero in
+ saydigit 8
+ case $1 in
+ say 8
+ '[' '!' -f /home/irlp/audio/custom/speaktime/8.ul ']'
+ SAYFILES=' custom/speaktime/the_time_is custom/speaktime/8'
+ case $m in
+ saynumber 55 y
++ expr 55 / 10
++ expr 55 % 10
+ set -hxB 5 5
+ case $tens in
+ say 50
+ '[' '!' -f /home/irlp/audio/custom/speaktime/50.ul ']'
+ SAYFILES=' custom/speaktime/the_time_is custom/speaktime/8 custom/speaktime/50'
+ saydigit 5
+ case $1 in
+ say 5
+ '[' '!' -f /home/irlp/audio/custom/speaktime/5.ul ']'
+ SAYFILES=' custom/speaktime/the_time_is custom/speaktime/8 custom/speaktime/50 custom/speaktime/5'
+ case $p in
+ say am
+ '[' '!' -f /home/irlp/audio/custom/speaktime/am.ul ']'
+ SAYFILES=' custom/speaktime/the_time_is custom/speaktime/8 custom/speaktime/50 custom/speaktime/5 custom/speaktime/am'
+ saytime ' custom/speaktime/the_time_is custom/speaktime/8 custom/speaktime/50 custom/speaktime/5 custom/speaktime/am'
+ cd /home/irlp/custom
+ speak ' custom/speaktime/the_time_is custom/speaktime/8 custom/speaktime/50 custom/speaktime/5 custom/speaktime/am'
+ /home/irlp/scripts/wavplay custom/speaktime/the_time_is custom/speaktime/8 custom/speaktime/50 custom/speaktime/5 custom/speaktime/am
+ exit 0But there was no audio played over the node repeater; just a key-up and unkey.
I am not very skilled at bash scripts; I've attempted some diagnosis with the files, but with no results.
I have not modified the speaktime or wavplay scripts; I copied them from the backup files, as-is.
Any diagnostic, troubleshooting, or previous experiences on how I should proceed are most appreciated.