I want to start recording when someone starts talking, and stop recording when it becomes silent.
I guess if there is stream audio processing tool like
ImageMagick, so I can strip away blank sections like this:
$ rec -t wav - | wavefilter -strip-blank=3sec | lame - >record1.mp3
This question is resolved by using:
$ rec -t wav - silence 1 0.1 3% -1 1.0 3% | lame - >record1.mp3