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.


Command line options

./kissrec.py --help
usage: kissrec.py [options] outputfile.wav

  --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


The 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.


Posted at: 00:35 | category: /nerdy/kissrec | # | 0 comments

posted comments -

post comment -





Secret Number Image