From 1b199983fbcc6ff7f17d300235158c9e9f44d25b Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 15 Oct 2023 11:46:50 +0530 Subject: adding virtual mic script --- .scripts/virtual_mic.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .scripts/virtual_mic.sh (limited to '.scripts') diff --git a/.scripts/virtual_mic.sh b/.scripts/virtual_mic.sh new file mode 100644 index 0000000..20d791d --- /dev/null +++ b/.scripts/virtual_mic.sh @@ -0,0 +1,10 @@ +#!/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" -- cgit v1.2.3