record audio & make available online
Hello all, thanks in advance for your help. Here is what I have for ya.
I'm trying to constantly record audio from the mic jack of my sound card and also make the current or "live" audio available on a tcp port of my choice.
I'm using this to monitor and hopefully record audio from a VHF marine band radio. I'm currently using the following command to make the audio available over port 41410.
netcat -l-p 41410 -e /usr/bin/radio.sh
The following is contained in a script "radio.sh"
--CUT--
arecord -q -t wav -f cd | lame --quiet -b 24 -mm - -
--CUT--
This has been working wonderfully but, as I said above I would also like to record the audio at the same time. I tried using "tee" to send the audio to a file and also to a named pipe, then reading from that pipe when I connect through netcat but, (as you probably guessed) when the pipe is full (64k) the regular file also stops at 64k.
I hope that spells it out well enough. Any ideas?
|