Recording to an audio file (simple version)

Purpose. Records audio data and stores it in a file. The data is recorded in CD quality (44.1 kHz, 16 bit linear, stereo) and stored in a .wav file.


java SimpleAudioRecorder -h

java SimpleAudioRecorder audiofile



print usage information, then exit


the file name of the audio file that should be produced from the recorded data

Bugs, limitations.  You cannot select audio formats and the audio file type on the command line. See AudioRecorder for a version that has more advanced options. Due to a bug in the Sun jdk1.3/1.4, this program does not work with it.

Source code.