Created
December 28, 2019 11:18
-
-
Save sepastian/32034ba95bada0bc897d4b9a692f9136 to your computer and use it in GitHub Desktop.
Record audio that is currently output
This file contains 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
# Record audio that is currently output. | |
# From https://askubuntu.com/questions/229352/how-to-record-output-to-speakers | |
sudo apt-get install pulseaudio-utils lame mpg123 | |
pacmd list-sinks | grep -e 'name:' -e 'index' -e 'Speakers' | |
parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor | lame -r -V0 - out.mp3 | |
# ctrl + c to stop recording | |
mpg123 out.mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment