From 186e7c8f7a9e897e502f89bf3d8e69b6eda59cca Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Sat, 17 Jul 2021 19:39:37 +1000 Subject: [PATCH] add pulseaudio setup script --- pulseaudio-zoom-setup.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 pulseaudio-zoom-setup.sh diff --git a/pulseaudio-zoom-setup.sh b/pulseaudio-zoom-setup.sh new file mode 100755 index 0000000..f7bf807 --- /dev/null +++ b/pulseaudio-zoom-setup.sh @@ -0,0 +1,16 @@ +# Set up monitor sink + +# Load null-sink module and create a sink called monitor_sink +pactl load-module module-null-sink sink_name=zoom_sink sink_properties=device.description=zoom_sink +# Create combined headphones and Zoom sink +pactl load-module module-combine-sink slaves=alsa_output.usb-Razer_Razer_Kraken_X_USB_00000000-00.analog-stereo,zoom_sink +# Change OBS monitor device to monitor_sink +pacmd move-sink-input `pactl list sink-inputs | perl -nle '/Sink Input #(\d+)/ and $si = $1; /application.process.binary.*obs/ and print "$si"'` combined +# Mix microphone into Zoom sink +pactl load-module module-loopback latency_msec=60 adjust_time=6 source=alsa_input.usb-Razer_Razer_Kraken_X_USB_00000000-00.analog-stereo sink=zoom_sink +# Create a virtual microphone for Zoom to listen to +pactl load-module module-remap-source master=zoom_sink.monitor source_name=zoom_main source_properties="device.description=zoom_main" + +# Now set Zoom audio devices to: +# Speaker: Razer Kraken (or Same as System) +# Microphone: zoom_main -- 2.47.1