AFAIK, the available options are all lousy, and I wouldn't suggest starting any new project in perl using sound input until the situation improves.

Audio::DSP leaks memory, and the bug report on the memory-leak bug has been open since 2003.

Audio::OSS depends on OSS, but OSS emulation on Linux has been deteriorating rapidly in quality. It was removed by default in ubuntu 10.10, and you have to jump through extra hoops to get it to work (e.g., installing the also-oss package and invoking your program foo as "aoss foo"). I have experienced a lot of problems with bugs and poor performance, and these can be difficult to test for, since they depend, e.g., on what version of ubuntu you're running.

What is really missing right now is any kind of ALSA interface for linux. Either that or you could wait five years and hope that the quality of OSS emulation becomes acceptable.


In reply to Re^2: reading sound input by bcrowell2
in thread reading sound input by Baphi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.