Created
May 6, 2026 01:18
-
-
Save devonhk/e4dc22c8e3636c0fd3efa78e8f677855 to your computer and use it in GitHub Desktop.
Oneliner to record currently playing audio on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Tested on Fedora 43 | |
| parec --device="$(pactl list sinks short | awk '$NF=="RUNNING" {print $2".monitor"}' | head -1)" --file-format=wav /tmp/output.wav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment