[pulseaudio-discuss] Saving an audio stream

Jan-Benedict Glaw jbglaw at lug-owl.de
Sun Feb 10 14:16:25 PST 2008


On Sun, 2008-02-10 18:53:05 +0100, Jan-Benedict Glaw <jbglaw at lug-owl.de> wrote:
> On Sun, 2008-02-10 19:54:25 +0100, Esben Stien <b0ef at esben-stien.name> wrote:
> > Daniel Kasak <dkasak at nusconsulting.com.au> writes:
> > > setting up pulseaudio: to copy audio streams
> > 
> > Just set up pulseaudio to use jack[0] and connect a recorder.
> 
> Didn't check, but isn't there a monitor source for every sink?

pavucontrol works as expected with the monitor source, so does pacat:

	pacat -r -d foo.monitor > recording.pcm

If you don't know your sink/source name, use the "list-sources"
command or inspect verbose output of the daemon while starting up.

You need to convert it to WAV (or anything else) afterwards, which
should be fairly simple using `sox':

	sox -c 2 -r 44100 -s -2 -t raw recording.pcm \
	                        -t wav recording.wav

(You can, of course, play with the recording format and specify
something different for both `pacat' and `sox'.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw at lug-owl.de              +49-172-7608481
 Signature of:                      http://perl.plover.com/Questions.html
 the second  :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20080210/08a86e52/attachment.pgp>


More information about the pulseaudio-discuss mailing list