gaintool &Here you can adjust the recording volume and select the input type.
s16record -f 48000 -s 1800 filename.dThe options are: -f for the sampling frequency, -s is for the duration of the record session (in seconds -- you want to make this quite big, then just kill the record session with Ctrl-C when you are done), and filename.d is the name of the output file. Save audio files in the /man-ray/local/ directory, or make a subdirectory there for your files.
xwaves filename.dYou want to check to make sure that the amplitude of the waveform is OK. If the grid to the left in the display ranges within about + to - 20K, you're fine. Anything much above this is probably too loud and runs the risk of being clipped at some point. Anything much less than this, say +/-100, is much too soft. If necessary, adjust the record volume in the Audio Control Panel and record in again using
bhd file.d > file.raw
sox -r 48000 -t raw -w -s file.raw file.wav
The options are:
-r is the frequency of the original file,
-t is the typeof the original file, file.raw is the name of the original file, and file.wav is the name of the .wav output file.
-w and -s are necessary options concerning the data formatting.
Apparently, there is no need to byte-swap (the -x option) when going from UNIX to PC (though byte-swapping is crucial when going from PC to UNIX). If you want to down-sample the sampling frequency of the file, you can do that in this step too.
--Jennifer Venditti & Paul Tepper, 7/10/2001