#!/bin/sh # create virtual sinks pactl load-module module-null-sink sink_name=VirtualSpeaker pactl load-module module-null-sink media.class=Audio/Duplex sink_name=VirtualMicrophone # create loopbacks pactl load-module module-loopback source="VirtualSpeaker.monitor" sink="$(pactl get-default-sink)" pactl load-module module-loopback source="$(pactl get-default-source)" sink="VirtualMicrophone" pactl load-module module-loopback source="VirtualSpeaker.monitor" sink="VirtualMicrophone"