Skip to content

Instantly share code, notes, and snippets.

@MaxPleaner
Created March 29, 2017 20:40
Show Gist options
  • Save MaxPleaner/56429e966913364f1d347c267e1634cf to your computer and use it in GitHub Desktop.
Save MaxPleaner/56429e966913364f1d347c267e1634cf to your computer and use it in GitHub Desktop.
record system output directly (without microphone)
# note this is a fish function
# if you're using fish shell, create a new file called ~/.config/fish/functions/record-out.fish
# and copy this in there
#
# otherwise, just use line 2 and replace $argv with a filename such as out.mp3
function record-out
parec -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | lame -r -V0 - $argv
end
# credit for this:
# http://askubuntu.com/questions/229352/how-to-record-output-to-speakers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment