I'm trying to run 2 sound cards, each recording audio from a different radio. I'm using the silence command so that there is no space between radio conversations. Below is the script file I'm running to start the processes:
Code: Select all
export AUDIODEV=hw:0,0
sleep 1
rec -r 44100 -c 1 -p | sox -p zero.mp3 silence 1 0.1 1% -1 1.5 1% &
sleep 2
export AUDIODEV=hw:1,0
sleep 1
rec -r 44100 -c 1 -p | sox -p one.mp3 silence 1 0.1 1% -1 1.5 1% &
If I just allow one or the other rec command to start, the silence command works perfect. If I start both then 1 sound card will record perfect audio without any silence however the other sound card will record audio BUT also the silence. There is no predictability of sound card will record audio w/out silence.
I also added a 3rd sound card, again 2 cards will produce perfect audio without silence while the 3rd (and its never the same out of the 3 cards) will record good audio BUT also records all the silence.
Any ideas?
Thanks
George