[arm-allstar] speaktext.sh
(KP4TR)Ramon Gonzalez
kp4tr.ramon at gmail.com
Sun Jul 27 11:57:06 EST 2014
Doug,
If I use "localplay" it does not work. I get no audio.
If I use "playback" it works, but the radio does not key up. I have to
use "susb key" to get the radio to TX.
On 7/26/2014 6:17 PM, Ron Wenig wrote:
> Thanks Doug,
>
> That's good to know about playback and localplay.
>
> 73, Ron NY3J
>
> On 7/26/2014 5:43 PM, Doug Crompton wrote:
>> I looked at the script and it looks good but one word of warning he
>> is using playfile and not localplay to play the files. This sends it
>> out globally to all connected nodes and not just your local computer.
>> You also do not need to key and unkey the TX, localplay does that for
>> you.
>>
>> This...
>>
>> asterisk -rx "susb key"
>> asterisk -rx "rpt playback $2 ${LOCALSND}"
>> asterisk -rx "susb unkey"
>>
>> should be this for local playback...
>>
>> asterisk -rx "rpt localplay $2 ${LOCALSND}"
>>
>>
>> *73 Doug
>> WA3DSP
>> http://www.crompton.com/hamradio*
>>
>>
>> ------------------------------------------------------------------------
>> Date: Sat, 26 Jul 2014 17:13:17 -0400
>> From: rwenig at verizon.net
>> To: arm-allstar at hamvoip.org
>> Subject: Re: [arm-allstar] speaktext.sh
>>
>> Ramon,
>>
>> Never mind, Google fixed it. I guess the problem was using WinSCP to
>> copy the program. Issuing the command :set fileformat=unix in VI
>> fixed it.| It works great. Can't wait to see the next phase of the
>> program.
>>
>> 73, Ron NY3J
>>
>> |
>> On 7/26/2014 4:55 PM, Ron Wenig wrote:
>>
>> Hi Ramon,
>>
>> I hope you don't mind but I wanted to give your shellscript a
>> try. I'm just learning Linux so I may be over my head in this.
>> It's my test node so I'm not worried about breaking it.
>>
>> I copied your shellscript to /etc/asterisk/local then issued
>> chmod 755 speaktext.sh. When I run the script I get the following:
>>
>> [root at bbb-digital local]# ./speaktext.sh "192.168.1.3" 40892
>> -bash: ./speaktext.sh: /bin/bash^M: bad interpreter: No such file
>> or directory
>>
>> Let me know if it's an easy fix for me. If it's too involved
>> I'll stick to more basic stuff :-)
>>
>> 73, Ron NY3J
>>
>> On 7/26/2014 12:02 PM, (KP4TR)Ramon Gonzalez wrote:
>>
>> Doug
>>
>> Attached is a shellscript I wrote based on the questions I
>> had about making the radio transmit and sending speech.
>>
>> I'm using this to output information from my local
>> environment using another script that fetches this for me
>> from DTMF commands. That other script is yet to be written
>> but I do have it for IRLP. Just need to adapt it to Allstar.
>>
>> To use just enter text in quotes and the node to send it to.
>> It is still a work in progress but useable
>>
>> Example syntax is:
>>
>> ./speaktext.sh "IP 192.168.1.20" 28727
>>
>>
>> _______________________________________________
>>
>> arm-allstar mailing list
>> arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>
>> Visit the BBB web page -http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
>>
>>
>>
>>
>> _______________________________________________
>>
>> arm-allstar mailing list
>> arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>
>> Visit the BBB web page -http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
>>
>>
>>
>> _______________________________________________ arm-allstar mailing
>> list arm-allstar at hamvoip.org
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar Visit
>> the BBB web page -
>> http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
>>
>>
>> _______________________________________________
>>
>> arm-allstar mailing list
>> arm-allstar at hamvoip.org
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>
>> Visit the BBB web page -http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
>
>
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB web page - http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20140727/7cdabaa4/attachment.html>
More information about the arm-allstar
mailing list