From: Andrew Lorimer Date: Sat, 17 Jul 2021 09:39:37 +0000 (+1000) Subject: add pulseaudio setup script X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/186e7c8f7a9e897e502f89bf3d8e69b6eda59cca?hp=a99da5ec6a77386865f73967644494ad0f25a6b7 add pulseaudio setup script --- 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