Created
June 30, 2021 20:07
-
-
Save atharva-lipare/377dbd2abb47b5428d3bbac0956d8457 to your computer and use it in GitHub Desktop.
useful pulseaudio commands
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
# create virtual sink with name Virtual_Sink | |
pacmd load-module module-null-sink sink_name=Virtual_Sink sink_properties=device.description=Virtual_Sink | |
# remove virtual sink with name Virtual_Sink | |
pactl list short modules | grep "sink_name=Virtual_Sink" | cut -f1 | xargs -L1 pactl unload-module | |
# record sound from virtual source with name Virtual_Sink and output file out.mp3 | |
parec -d Virtual_Sink.monitor | lame -r -V0 - out.mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment