Re: Speaktime wavplay problem Debian Buster on PiRLP

Rob Vance
 

One more thing, we have also noticed that the connect/disconnect messages for EchoIRLP are not working.  I hadn't taken the time to investigate that issue.  The connect/disconnect messages for IRLP work fine.

Rob Vance
408.221.5728


On Fri, Nov 22, 2019 at 11:07 AM Rob Vance <n6rob.rob@...> wrote:
Hi Dave,

Thanks for the help.  Here is the change I made to the speaktime script:

# Function to play the audio files
#
function speak () {
#  ${SCRIPT}/wavplay ${1}
    aplay ${1}
}

and the output...
repeater@stn3671:~/features/speaktime$ ./speaktime
custom/speaktime/the_time_is: No such file or directory

Here is the symlink from $AUDIO/custom back to features/speaktime/audio
lrwxrwxrwx 1 repeater repeater      33 Jan  8  2013 S69 -> /home/irlp/features/star69/audio/
lrwxrwxrwx 1 repeater repeater      36 Jan 10  2013 speakdate -> /home/irlp/features/speakdate/audio/
lrwxrwxrwx 1 repeater repeater      36 Nov 21 21:45 speaktime -> /home/irlp/features/speaktime/audio/

Here is the file list for audio...
repeater@stn3671:~/features/speaktime/audio$ ls -l | grep the_time_is
-rwxrwxrwx 1 repeater repeater   12244 Feb 23  2004 the_time_is_aus.wav
-rwxrwxrwx 1 repeater repeater    7818 Aug  8  2006 the_time_is.ul
-rwxrwxrwx 1 repeater repeater    5748 May 14  2003 the_time_is.wav

Also, I should have mentioned before that I checked the script and it's starts with #!/bin/bash.  Some threads mention this as a potential problem.
#!/bin/bash
########################################################################
# filename:     speaktime

The speaktime script I am using originates from KC6HUR.

This just feels like I am doing something wrong; I tried your scripts as well - still, no joy.  ... like there will be a big face-palm in the near future.

Thank you!

Rob, N6ROB
(stn3671, K6SA)


On Fri, Nov 22, 2019 at 10:28 AM Dave Parks - WB8ODF via Groups.Io <wb8odf=yahoo.com@groups.io> wrote:
Hi Rob,

Lets try something simple...

You said it seems to do everything except play the wav files.

Edit the script and change either play or wavplay (whichever is in the script) to aplay and see if that helps.



On Friday, November 22, 2019, 12:49:58 PM EST, Rob Vance <n6rob.rob@...> wrote:


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 (#65745), 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.