<br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 6:58 AM, Paulo Cavalcanti <span dir="ltr">&lt;<a href="mailto:promac@gmail.com">promac@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Jan 24, 2010 at 10:31 PM, Paulo Cavalcanti <span dir="ltr">&lt;<a href="mailto:promac@gmail.com" target="_blank">promac@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I have been recording using arecord and aplay this way:<br><br>arecord -D default -d 0 -f cd | aplay -f cd -D default &amp;<br><br>The problem is that, while this works fine on rhel5, the same is no true<br>for Fedora 12 using pulseaudio, since I clearly hear some random noise (specially at low volumes).<br>


<br>Maybe this is related to the fact that the arecord process is consuming 15% of my CPU (a quadcore, 2.4MHz). Compared to Audacious 2.2, for instance, playing an mp3 file, which consumes only 4% of the CPU, this is really too much.<br>


<br clear="all">I concluded that the problem has to do with recording with pulseaudio active. <br>I know there are parecord and paplay, but they are just symbolic links to pacat,<br>and I do not know how to combine them in a similar way.<br>


<br>Therefore, my question is what is the best way of recording with pulseadio, without wasting too much of my CPU and without noise?<br><br></blockquote></div></div><div><br>In fact, 15% is the minimum. In general it can hit up to 30%.<br>

<br>If I use <br><br>arecord -D default -d 0 -f $tp | paplay &amp; <br><br>the consumption drops to 7% (much better), but still too far from the<br>0.3% I get on rhel5.<br><br><br></div></div><div><div></div><div class="h5">
<br></div></div></blockquote><div><br><br>This is the answer to my own question: <br></div></div><br>parec | pacat &amp;<br><br>No noise and CPU below 0.3%<br><br>-- <br>Paulo Roma Cavalcanti<br>LCG - UFRJ<br>