in reply to Recording audio with perl
On Linux, Gstreamer is often used for this kind of thing. Looking around I believe you may be able to use Gstreamer1 for this. Then apply the method from this Python solution.