Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save devonhk/e4dc22c8e3636c0fd3efa78e8f677855 to your computer and use it in GitHub Desktop.

Select an option

Save devonhk/e4dc22c8e3636c0fd3efa78e8f677855 to your computer and use it in GitHub Desktop.
Oneliner to record currently playing audio on Linux
# 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