We have an experiment wherein we need to record audio for a couple of days. Audacity seems to freeze after a few hours. Any other alternative?
3 Answers
A graphical frontend may survive for days on a stable machine but there are many reasons why it may stop working. To avoid such side effects let me suggest to use a more low level utility for recording.
If there was no need of audio compression we can record using the simple command line tool parec that comes with pulseaudio. We can adjust sample rate or channels, record RAW PCM data or choose from a variety of output containers. Recording is done to a file if specified.
parec --device=<source> <filename>
This will record from the specified source device using default settings which can be adapted (see manpage pacat) until it was stopped by keyboard interrupt, TERM or KILL signal, or by closing of the terminal.
Unfortunately instabilities of Pulseaudio, ALSA, or even the hardware may still occur if we are talking about days. But these will then have adverse effects on all other sound recording tools too.

- 142,284
Try Audio Recorder
it's a small utility for recording audio, you can install it by typing :
sudo add-apt-repository ppa:osmoma/audio-recorder
sudo apt-get update
sudo apt-get install audio-recorder
There is also Ardour it's a powerful digital audio workstation that gives you everything you need to record, edit, mix, and arrange professional audio, you can install it by typing :
sudo add-apt-repository ppa:dobey/audiotools
sudo apt-get update
sudo apt-get install ardour
Or download it from the download page.

- 3,699
oggenc
orflac
, but your cpu might not have enough horsepower to keep up with the compression in real time depending on the settings used. Without compression, the file size can grow extremely large. – psusi Oct 27 '15 at 23:00