[App_rpt-users] Playing sounds locally

Doug Crompton doug at crompton.com
Mon Nov 11 16:49:17 UTC 2013


Chuck,

 Thanks. Works fine for me.

#! /bin/bash

cat   /var/lib/asterisk/sounds/letters/w.gsm   /var/lib/asterisk/sounds/letters/a.gsm   /var/lib/asterisk/sounds/digits/3.gsm   /var/lib/asterisk/sounds/letters/d.gsm   /var/lib/asterisk/sounds/letters/s.gsm   /var/lib/asterisk/sounds/letters/p.gsm   /var/lib/asterisk/sounds/node.gsm   /var/lib/asterisk/sounds/digits/2.gsm /var/lib/asterisk/sounds/digits/7.gsm /var/lib/asterisk/sounds/digits/2.gsm /var/lib/asterisk/sounds/digits/2.gsm /var/lib/asterisk/sounds/digits/5.gsm  >   /etc/asterisk/wa3dsp/node-announce.gsm

WA3DSP_Allstar*CLI> rpt localplay 27225 /etc/asterisk/wa3dsp/node-announce
73 Doug
WA3DSP
http://www.crompton.com/hamradio


From: rpt2 at chuck.midlandsnetworking.com
Date: Mon, 11 Nov 2013 02:27:14 -0600
Subject: Re: [App_rpt-users] Playing sounds locally
To: doug at crompton.com
CC: app_rpt-users at ohnosec.org

At the unix shell prompt, this is an example to make my test system (1234) say my call sign phonetically. 
cat   /var/lib/asterisk/sounds/this.gsm   /var/lib/asterisk/sounds/is.gsm   /var/lib/asterisk/sounds/phonetic/w_p.gsm   /var/lib/asterisk/sounds/phonetic/b_p.gsm   /var/lib/asterisk/sounds/digits/9.gsm   /var/lib/asterisk/sounds/phonetic/u_p.gsm   /var/lib/asterisk/sounds/phonetic/u_p.gsm   /var/lib/asterisk/sounds/phonetic/s_p.gsm   /var/lib/asterisk/sounds/repeater.gsm   >   /var/lib/asterisk/sounds/rpt/wb9uus-repeater.gsm  



asterisk -vvvvr -x "rpt localplay 1234 /var/lib/asterisk/sounds/rpt/wb9uus-repeater"
This also works with ulaw files like this....


cat /var/lib/asterisk/sounds/this.ulaw   /var/lib/asterisk/sounds/is.ulaw   /var/lib/asterisk/sounds/phonetic/w_p.ulaw   /var/lib/asterisk/sounds/phonetic/b_p.ulaw   /var/lib/asterisk/sounds/digits/9.ulaw   /var/lib/asterisk/sounds/phonetic/u_p.ulaw   /var/lib/asterisk/sounds/phonetic/u_p.ulaw   /var/lib/asterisk/sounds/phonetic/s_p.ulaw   /var/lib/asterisk/sounds/repeater.ulaw   >   /var/lib/asterisk/sounds/rpt/wb9uus-repeater-u.ulaw  


asterisk -vvvvr -x "rpt localplay 1234 /var/lib/asterisk/sounds/rpt/wb9uus-repeater-u"  

I don't know if it works with other formats of audio files.


And yes, the full path is optional under some circumstances, depending on where the files are and what your current directory is, but is given here to avoid ambiguity.
Chuck  WB9UUS

 







On Mon, Nov 11, 2013 at 12:19 AM, Doug Crompton <doug at crompton.com> wrote:





I have a question about playing sounds locally. When I play a sound -

WA3DSP_Allstar*CLI> rpt localplay 27225 /var/lib/asterisk/sounds/repeater
[Nov 11 01:11:25] NOTICE[9032]: app_rpt.c:8502 wait_interval: Delay interval = 2000


[Nov 11 01:11:27] NOTICE[9032]: app_rpt.c:8506 wait_interval: Delay complete
    -- <Zap/pseudo-560835011> Playing '/var/lib/asterisk/sounds/repeater' (language 'en')
    -- Hungup 'Zap/pseudo-560835011'



There is a delay inserted and of course this has to keyup and unkey the radio.

If one wants to formulate a sentence with a series of asterisk sounds (from the sound directory) and send them over the radio how would that be done as one complete series without delays or unkeys?



73 Doug
WA3DSP
http://www.crompton.com/hamradio


 		 	   		  

_______________________________________________

App_rpt-users mailing list

App_rpt-users at ohnosec.org

http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users



 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20131111/0c8c4f02/attachment.html>


More information about the App_rpt-users mailing list