Skip to content

Instantly share code, notes, and snippets.

@cubimon
Created February 22, 2021 22:49
Show Gist options
  • Save cubimon/aacfc856138d55af74c658be4de0a026 to your computer and use it in GitHub Desktop.
Save cubimon/aacfc856138d55af74c658be4de0a026 to your computer and use it in GitHub Desktop.
Pulseaudio virtual microphone/loopback output -> input
function virtual-mic {
mic=`pacmd info | grep "Default source" | cut -d":" -f2 | xargs`
echo "using ${mic}"
pactl load-module module-null-sink sink_name=Loopback sink_properties=device.description="Loopback"
pactl load-module module-loopback source=${mic} sink=Loopback
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment