Similar to script from here; viewtopic.php?p=94388#p94388 "Record what U Hear" but extended with GUI (gtkdialog) including more options, e.g. record to ogg (requires vorbis-tools) , mp3 (requires lame) and wav, more fine tuning (encoder options), option to set destination/filename .
xbps package (for KLV-Airedale):