Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Hey guys,
- #here is my all-in-one script for postprocessing work after dect_cli.
- #The interesting part for you will be the mixing part, which searches for the matching files and mixes them to one call-xxx-file ;)
- #You will have the known _fp.ima.wav and _pp.ima.wav as usual but also the call-dump-XX_xx_xx_xx_xx.wav file.
- #Cheers
- #burgi
- #===== CODE ======
- export LD_LIBRARY_PATH=/usr/lib
- #clear up old stuff (but leaves the call-files alone)
- rm *.ima.wav
- rm *.ima
- #pcapstein
- for i in `/bin/ls -1 *.pcap` ; do
- ./pcapstein $i
- done
- #decoder
- for i in *.ima ; do
- cat $i | decode-g72x -64 -l -L | sox -r 8000 -2 -c 1 -s -t raw - -t wav $i.wav;
- done
- #mixer by burgiman
- # makes a new file with mixed fp & pp
- for i in `/bin/ls -1 *_fp.ima.wav` ; do
- dumpCL=${i%.pcap_fp.ima.wav}
- dumpFP=$dumpCL'.pcap_fp.ima.wav'
- dumpPP=$dumpCL'.pcap_pp.ima.wav'
- if [ -f $dumpPP ]
- then
- echo "== FP & PP found for =="
- echo " $dumpCL"
- echo " FP: $dumpFP"
- echo " PP: $dumpPP"
- sox -m $dumpFP $dumpFP call-$dumpCL.wav
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement