[arm-allstar] Hourly weather announcements
Doug Crompton
wa3dsp at gmail.com
Fri Dec 7 01:24:28 EST 2018
George,
For question 4 the answer is the TTS (text to speech) howto at hamvoip.org.
Since that text is not part of any pre-recorded sounds available in Allstar
you need to create it. The howto spells that out but here are the very
abbreviated steps.
Go to the voicerss.org site, register for free and get your key.
Insert that key into the //usr/local/etc/tts.conf file
in /tmp create a file and put the text in it you want to say.
nano node-id
enter in the file what you want to say and save it.
run the script
tts_audio.sh
This will create node-id.ul
Play it - replace node with your node.
asterisk -rx "rpt localplay node /tmp/node-id"
See how it sounds. Delays can be added with periods or multiple periods
so you might want to enter as an example in the text file
....W A 3 D S P . Richboro, Pennsylvania
If it does not sound right edit the text file again and run the script.
If it looks good do the following -
cd /etc/asterisk/local
mv node-id.gsm node-id.gsm.old
cp /tmp/node-id.ul .
You should then have a new id - use *80 to hear.
TIP - up arrow in Linux goes back to prior commands so you don't have to
enter them again.
Now that you have voicerss install you can use it to do other voice
messages as you desire.
Item 3 is certainly doable but a little more difficult. It is often the
case that some delay is needed before announcements because of Keyup/PL
delays. This would need to be added to the sound file and I often do that
in pre-recorded announcements.
In /var/lib/asterisk/sounds/silence you will find delay files.
1.gsm 10.gsm 2.gsm 3.gsm 4.gsm 5.gsm 6.gsm 7.gsm 8.gsm 9.gsm
Each of these files gives a delay of the file name number of seconds of
silence. This would be added to the beginning of the file. In order to do
this for saytime.pl you would have to modify the file which I would not
want you to as this file can be overwritten.
First lets determine why you need the delay. If it is that bad then you
would also miss the beginning of other things also. I have never found
anything missing on the beginning of the time readout. Is it your PL? What
happens if you do not use receive PL. If you don't have a local signal or
noise on the channel you are using then you could turn off receive PL and
just use tone on transmit.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Fri, Dec 7, 2018 at 12:56 AM "George via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> Hi Doug,
> They were in my message from 2 hours ago about the *81 line of code.
> By the way, the *81 now works also.
> 3. If I wanted a 2 second delay at the start of the announcement how
> would I do that?4. If I wanted to add "Redmond Oregon" after my call, how
> could I do
> that?
> As always, Doug, thanks for the very prompt answers to questions. You
> and the others at Hamvoip (staff and users) are just fantastic. Regards,
> George, NJ3H
> Redmond, Oregon USADMR Node: 3141315Allstar Node: 49246Echolink Node
> NJ3H-L: 3135
>
> From: Doug Crompton via ARM-allstar <arm-allstar at hamvoip.org>
> To: ARM Allstar <arm-allstar at hamvoip.org>
> Cc: Doug Crompton <wa3dsp at gmail.com>
> Sent: Thursday, December 6, 2018 9:42 PM
> Subject: Re: [arm-allstar] Hourly weather announcements
>
> George,
>
> Questions 3 and 4??? Refresh my memory.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
> On Fri, Dec 7, 2018 at 12:02 AM "George via ARM-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
> > Doug,
> > Thanks for the clarification. Will give it a go. The auto announcement on
> > the hour worked perfectly.
> > Any thoughts on my questions 3 and 4?
> >
> > Regards,
> > George, NJ3H
> > Redmond, Oregon USA
> > DMR Node: 3141315
> > Allstar Node: 49246
> > Echolink Node NJ3H-L: 3135
> >
> > On Thu, Dec 6, 2018 at 8:24 PM, Doug Crompton via ARM-allstar<
> > arm-allstar at hamvoip.org> wrote: George,
> >
> > I thought the line was in there but if not here is what you do -
> >
> > ;81=status,12 ; Time of Day (local) <<<COMMENT THIS LINE
> > 81=cmd,/usr/local/sbin/saytime.pl 18954 42291 <<<< ADD THIS LINE
> >
> > Comment by putting a semicolon before the line
> > and add the line with YOUR zip and node number
> >
> >
> > *73 Doug*
> >
> > *WA3DSP*
> >
> > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> >
> >
> >
> >
> > On Thu, Dec 6, 2018 at 10:54 PM "George via ARM-allstar" <
> > arm-allstar at hamvoip.org> wrote:
> >
> > > Hi Doug,
> > > Thank you for the steps to do this. A few questions.
> > > 1. crontab edited ok.2. looked at rpt.conf. I do not have a line
> similar
> > > to the one in your initial message. What I have looks like the
> > following:
> > >
> > >
> >
> ****************************************************************************
> > > 80=status,11 ; ID (local)
> > > 81=status,12 ; Time of Day (local)
> > >
> > > ; Say 24 hour time - change to your node
> > > 82=cmd,/usr/local/sbin/say24time.pl 49246
> > >
> > > and further down
> > >
> > > 1=*81 *80# ; play time and voice ID
> > > ********************************************************************
> > > So where exactly do I put the statement that is in the same format of
> *82
> > > from your email?
> > > 3. If I wanted a 2 second delay at the start of the announcement how
> > would
> > > I do that?
> > > 4. If I wanted to add "Redmond Oregon" after my call, how could I do
> > that?
> > > As always, Doug, thanks for the very prompt answers to questions. You
> > and
> > > the others at Hamvoip (staff and users) are just fantastic. Regards,
> > > George, NJ3H
> > > Redmond, Oregon USADMR Node: 3141315Allstar Node: 49246Echolink Node
> > > NJ3H-L: 3135
> > >
> > > From: Doug Crompton via ARM-allstar <arm-allstar at hamvoip.org>
> > > To: ARM Allstar <arm-allstar at hamvoip.org>
> > > Cc: Doug Crompton <wa3dsp at gmail.com>
> > > Sent: Wednesday, December 5, 2018 1:57 PM
> > > Subject: Re: [arm-allstar] Hourly weather announcements
> > >
> > > George,
> > >
> > > Quite easy. Edit your cron -
> > >
> > > crontab -e
> > >
> > > Carefully edit it to add your zip code -
> > >
> > > 00 0-23 * * * (source /usr/local/etc/allstar.env ; /usr/bin/nice -19
> > > /usr/bin/perl /usr/local/sbin/saytime.pl 18954 $NODE1 > /dev/null)
> > >
> > > The preceding line is all one line. You can see the 18954 which is my
> zip
> > > code. In your line replace that with your zip code. Don't change
> anything
> > > else.
> > >
> > > Save it and it will report the time and weather condition at the top of
> > the
> > > hour as well as the time.
> > >
> > > You also have the option of doing this at any time manually by typing
> > >
> > > saytime.pl <zip> <node>
> > >
> > > Or adding it to a function in rpt.conf as shown here. Stock code only
> > has
> > > the node not the zip. Edit rpt.conf and add the zip, restart asterisk
> and
> > > *81 will also have the weather temp and condition.
> > >
> > > 81=cmd,/usr/local/sbin/saytime.pl 18954 42291
> > >
> > >
> > > *73 Doug*
> > >
> > > *WA3DSP*
> > >
> > > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> > >
> > >
> > > * <http://www.crompton.com/hamradio>*
> > >
> > > On Wed, Dec 5, 2018 at 4:08 PM "George via ARM-allstar" <
> > > arm-allstar at hamvoip.org> wrote:
> > >
> > > > Greetings,
> > > > I saw a message where Chris Zenchenko mentions he has the the
> > temperature
> > > > announced at the top of the hour in addition to the time.
> > > > I would love to see a How-To to make this happen.
> > > > Regards, George, NJ3H
> > > > Redmond, Oregon USA
> > > > DMR Node: 3141315
> > > > Allstar Node: 49246
> > > > Echolink Node NJ3H-L: 3135
> > > > _______________________________________________
> > > >
> > > > ARM-allstar mailing list
> > > > ARM-allstar at hamvoip.org
> > > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > > >
> > > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > > _______________________________________________
> > >
> > > ARM-allstar mailing list
> > > ARM-allstar at hamvoip.org
> > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > >
> > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > >
> > >
> > >
> > > _______________________________________________
> > >
> > > ARM-allstar mailing list
> > > ARM-allstar at hamvoip.org
> > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > >
> > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> >
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
>
>
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list