Tue, 27 Jun 2006
kissrec.py: Keep It Simple Stupid audio recording for linux.Well I decided to update the nrecord program from wavnorm to work with ALSA. I ran into a barrier with using the newt library with the Alsa C API, and as I am lazy, re-implented it all in python. This allowed me to let the excellent pyalsaaudio and progressbar python modules do all the heavy lifting, while the kissrec.py program really just ties them together to make a simple audio recorder.
- Low CPU use
- Elapsed time counter
- VU meter
- Clip (max amplitude) indicator that can be reset.
Command line options
./kissrec.py --help usage: kissrec.py [options] outputfile.wav options: --version show program's version number and exit -h, --help show this help message and exit -dDEVICE, --device=DEVICE ALSA device to use, e.g. default for default device, or hw:1 for second sound card -v, --verbose
DownloadThe python code is here: kissrec.py
The prerequisites are:
Why did I make it?It is a trivial program, but on a low resource laptop all the more featureful Linux recording programs would produce glitchy recordings due to their overhead, while all the simple ones dont have the features to monitor what is going on adequately. This software allows simple recording to occur, but with monitoring of the input levels and if any clipping has occured.
- Package it, and it's requisites, for Debian
- Option to hit a key and start a new .wav file seamlessly, for marking tracks in long jams or DJ mixes (i.e. hit a key and seamlessly close recording01.wav and start on recording02.wav).
- Select all the sound card parameters on the command line.. presently hardcoded for 16 bit, stereo 44.1Khz.