The de facto Linux sound-mixing system

Doing the Routing

To record the output of Firefox into Audacity, start by making sure that both applications are running.

One problem that you might run into is that, regardless of your chosen backend, Audacity only adds itself to the audio system when it is recording or playing. For this reason, press the Record button and then press Pause to be able to find it within qpwgraph. It was called PipeWire ALSA [audacity]/ALSA Capture [audacity] [ALSA Capture] on my setup.

As soon as you open a website that can play back sound in Firefox, it should appear on the graph, and each tab has its own node on the graph. In qpwgraph, drag from the green output connectors on the appropriate output node to the input connectors on the Audacity node (Figure 5). In all likelihood, the inputs of your sound device will already be connected to the inputs of Audacity. There's a chance that these might introduce some unwanted background noise. For this reason, disconnect them (left-click on the connection wire, and the right-click and select disconnect).

Figure 5: Plugging the audio outputs from a Firefox tab into the inputs of Audacity.

You should now be ready to start recording Firefox's audio output. In Audacity, press the Pause button to recommence the recording. In Firefox, press the Play button to begin playback. Switch back to Audacity and you should see the waveform filling up the window. Thankfully, this panel resizes itself in real time. When the audio that you wanted to capture has concluded, press the Stop button in Audacity.

Because I had to start the recording before I started playback in Firefox, there is a gap at the beginning (see Figure 6) that you'll probably want to erase. Zoom in to the beginning of the recording (Ctrl+mouse wheel) and use the scrollbar at the bottom of the screen to make sure you're at the beginning, drag over the silent part at the beginning of the waveform, and press Delete to remove it.

Figure 6: This audio was recorded into Audacity from a Firefox tab.

Conclusion

Hopefully, this article has provided an overview of PipeWire's abilities and how you can use it. PipeWire even has facilities for routing video, but I didn't cover that subject this time around because I don't feel there are as many essential use cases for video and PipeWire at this stage of its evolution.

Years ago, PulseAudio caused a bit of turbulence when it was added to popular distros like Ubuntu. The inclusion of PipeWire seems to have gone much more smoothly, to the extent that most users probably don't even know they're using it. That's the strength of PipeWire: It transparently handles the routing for ALSA, PulseAudio, and JACK-based applications, plus it has the configuration complexity and advanced features professional users require.

Michael Reed

Little did Michael Reed know where purchasing those "Winter 1996" Linux CD-ROMs would lead. He's been knocking about in computer publications since the mid-2000s. In his spare time, he's out on his bicycle, doing some DIY, dancing in clubs, and singing and guitar slinging, though not all at once.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • PipeWire

    In the coming year, PipeWire will replace PulseAudio, resulting in better audio on Linux. If you can't wait, here's what you need to know to get started with PipeWire.

  • PipeWire 1.0 Officially Released

    PipeWire was created to take the place of the oft-troubled PulseAudio and has finally reached the 1.0 status as a major update with plenty of improvements and the usual bug fixes.

  • This Month's DVD

    Ubuntu 21.04 and Fedora 34 Workstation

  • Reaper

    Linux users looking for a professional digital audio workstation can now take advantage of Reaper's large feature set.

  • FOSSPicks

    This month Graham looks at Ardour, FluffyChat, PlugData, Cameractrls, hiSHtory, CadQuery Editor, and more!

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News