[arm-allstar] Recording Node Audio
csmart8 at cogeco.ca
csmart8 at cogeco.ca
Tue Jul 12 15:53:35 EDT 2022
Thank you!
Do I just paste that script into a text editor and save it as filename.sh?
Then add it to crontab or something?
Sorry, I'm a bit of a beginner when it comes to this level of customization.
So far, I've just been editing various .conf files.
Chris
-----Original Message-----
From: ARM-allstar <arm-allstar-bounces at hamvoip.org> On Behalf Of "Kevin
Davis via ARM-allstar"
Sent: July 12, 2022 2:55 PM
To: ARM Allstar <arm-allstar at hamvoip.org>
Cc: Kevin Davis <blu666z at gmail.com>
Subject: Re: [arm-allstar] Recording Node Audio
I do this with a couple nets on a local repeater.
I have two rpt.conf files that I switch between to turn the archiving
on/off. When it's being turned off, the script will combine the files into
one large .WAV and move it to my NAS storage.
# Start/Stop Archiving of 507412 for Monday Linux net
10 20 * * 1 /usr/local/sbin/toggle_archive_507412.sh 1
15 21 * * 1 /usr/local/sbin/toggle_archive_507412.sh 0 LinuxNet
#!/bin/bash
# This script is used to Toggle On/Off archiving for Node 507412
# Move appropriate .conf file in and issue Asterisk Reload if [ $1 -eq '0'
]; then
cp /etc/asterisk/rpt.conf_507412_archive_off /etc/asterisk/rpt.conf
elif [ $1 -eq '1' ]; then
cp /etc/asterisk/rpt.conf_507412_archive_on /etc/asterisk/rpt.conf
mkdir -p /tmp/allstar_archive/507412 fi asterisk -rx "rpt reload"
# If stopping archive, combine all .wav files into one archive .wav file if
[ $1 -eq '0' ]; then
mount -a
mkdir -p /mnt/NAS/allstar_archive/$2
sox /tmp/allstar_archive/507412/*.WAV
/tmp/allstar_archive/507412/$2_complete_$(date '+%Y-%m-%d-%H.%M.%S').WAV
mv /tmp/allstar_archive/507412/* /mnt/NAS/allstar_archive/$2 fi
On Tue, Jul 12, 2022 at 11:30 AM "Chris via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> I understand that by adding or commenting out a line which says
>
> archivedir=/tmp
>
> to the rpt.conf file in the node section will enable or disable recording.
> But, to put the results out as a podcast, I need to combine all those
> wav files into a single file and move it to my PC. How do I combine
> wav files on the Pi?
>
>
>
> Additionally, is it possible to automate this, turn recording on/off
> at specific times, and collect and concatenate the resulting files,
> maybe even send them to my Dropbox or similar storage?
>
>
>
> Thanks for any assistance.
>
>
>
> 73
>
>
>
> Chris
>
> VE3RWJ (Absolute Tech Net podcast)
>
> _______________________________________________
>
> 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/4 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/4 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list