I;ve been working to get our call recordings set to stereo (transmit in left channel, receive in Right channel).
after a lot of work, I have stereo files! yay!..
but… they don’t align to each other?
Does anyone have any suggestions or experience with Merging a left/right channel for a call, and keeping the call flow aligned?
/etc/asterisk/globals_custom.conf:
SS=$
MIXMON_DIR=/var/spool/asterisk/monitor/
MONITOR_REC_OPTION=br(${SS}{MIXMON_DIR}${SS}{YEAR}/${SS}{MONTH}/${SS}{DAY}/recv_${SS}{CALLFILENAME}.${SS}{MON_FMT})t(${SS}{MIXMON_DIR}${SS}{YEAR}/${SS}{MONTH}/${SS}{DAY}/trans_${SS}{CALLFILENAME}.${SS}{MON_FMT})
MIXMON_POST=/usr/bin/mix-stereo.sh ${SS}{MIXMON_DIR}${SS}{YEAR}/${SS}{MONTH}/${SS}{DAY}/ ${SS}{CALLFILENAME}
and my mix script:
#!/bin/bash
SOX="/usr/bin/sox"
RM="/bin/rm"
IN="${1}recv_$2.wav"
OUT="${1}trans_$2.wav"
MIXDESTINATION="${1}$2_stereo.wav"
MERGEDESTINATION="${1}$2_mono.wav"
#echo "ran ${2}" >> /var/log/recordingtest.txt
$SOX -M $IN $OUT $MIXDESTINATION && $SOX -m $IN $OUT $MERGEDESTINATION && $RM $IN $OUT
in the resulting output audio files… I can complete an entire response before the remote party asks a question.