Speaktime wavplay problem Debian Buster on PiRLP

Rob Vance
 

Greetings,

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:

key
play/$AUDIO/stn3671
unkey

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 (, I did this 

repeater@stn3671:~/features/speaktime$ bash -x ./speaktime

and received this (std) output...
+ SDIR=custom/speaktime
+ SAYFILES=
+ '[' -z /home/irlp/custom ']'
+ source /home/irlp/custom/irlp_common.sh
+++ /usr/bin/whoami
++ '[' repeater '!=' repeater ']'
++ '[' TRUE '!=' TRUE ']'
+ say the_time_is
+ file=custom/speaktime/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
+ h=08
+ m=55
+ s=31
+ p=AM
+ case $h in
+ saynumber 08 n
+ num=08
+ zero=n
++ expr 08 / 10
++ expr 08 % 10
+ set -hxB 0 8
+ tens=0
+ unit=8
+ case $tens in
+ case $zero in
+ saydigit 8
+ case $1 in
+ say 8
+ file=custom/speaktime/8
+ '[' '!' -f /home/irlp/audio/custom/speaktime/8.ul ']'
+ SAYFILES=' custom/speaktime/the_time_is custom/speaktime/8'
+ case $m in
+ saynumber 55 y
+ num=55
+ zero=y
++ expr 55 / 10
++ expr 55 % 10
+ set -hxB 5 5
+ tens=5
+ unit=5
+ case $tens in
+ say 50
+ file=custom/speaktime/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
+ file=custom/speaktime/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
+ p=am
+ say am
+ file=custom/speaktime/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'
+ /home/irlp/bin/cosstate
+ 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 0

But 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.

Thank you.

Rob, N6ROB
(stn3671, K6SA)

Join IRLP@irlp.groups.io to automatically receive all group messages.