[App_rpt-users] Playing sounds locally
Chuck Henderson
rpt2 at chuck.midlandsnetworking.com
Mon Nov 11 08:27:14 UTC 2013
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 DougWA3DSPhttp://www.crompton.com/hamradio
> <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/749bdf16/attachment.html>
More information about the App_rpt-users
mailing list