[pulseaudio-discuss] What's the easiest way to capture audio that is being played over the PC's speakers?

Peter Meerwald pmeerw at pmeerw.net
Thu Jan 2 04:35:07 PST 2014


> I'm trying to figure out the easiest way to capture the audio that my Ubuntu Linux PC is
> playing and save it to a file.  I don't want to capture from a URL.  I also don't want
> to capture through the microphone, or analog capture device.  I simply want to
> capture the bits that are being sent to the sound card.  My system uses pulseaudio.

try to record from the monitor device of the output

pactl list | grep monitor
shows which monitor devices are available, e.g.
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor

then record for the monitor using
parec -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor --file-format=wav > rec.wav

p.

-- 

Peter Meerwald
+43-664-2444418 (mobile)


More information about the pulseaudio-discuss mailing list