Alternative to APLAY for Mac OS X bash
Here is the same program, as a perl one-liner, which works (tested) on Mac, Linux, and Windows

perl -e 'for($i=0;;$i++){
    print pack("n", ((($i*($i&gt;&gt;8|$i&gt;&gt;9)&amp;46&amp;$i&gt;&gt;8))^($i&amp;$i&gt;&gt;13|$i&gt;&gt;6))); 
}' | ./play -c 1 -b 8 -e unsigned -t raw -r 8k -


the "./play" command is the "sox" utility already mentioned in this article.&nbsp;