i haven't done this so this is just theoretical (meaning it won't work without experimenting with the switches
if it will work at all)
seems like you could use a command line .wav recorder and pipe the results to SoX
this is just a wild guess on the command (arecord is if you are using ALSA sound driver)
arecord -f cd -t wav file.wav | sox -t wav -r 44100 -s -w -c 2 file.ogg
-f cd in arecord is 16bit little endian[-f S16_LE -c2 -r44100]
-w in sox if for 16bit
-s in sox is signed linear
also posibly sound-recorder ???
sound-recorder -c 2 -b 16 -P file.wav | sox -t wav -r 44100 -s -w -c 2 file.ogg
this shouldn't actually make the wav file
Last edited by foo_bar_foo; 08-23-2004 at 11:46 PM.