pulseaudio module-echo-cancel beamforming

Here's an example line for default.pa or similiar, or for running using pacmd. I haven't tested it, but pulseaudio accepts this line just fine:

load-module module-echo-cancel use_master_format=1 aec_method=webrtc use_volume_sharing=1 aec_args="analog_gain_control=0 digital_gain_control=1 beamforming=1 mic_geometry=-0.04,0,0,0.04,0,0 target_direction=4.71238898,0,0" source_master=alsa_input.usb-046d_0821_FDA941A0-00.analog-stereo sink_master=alsa_output.pci-0000_43_00.1.hdmi-stereo-extra3 source_name=echoCancel_source sink_name=echoCancel_sink

Needs LC_NUMERIC=C in environment to be able to correctly read the mic_geometry. Using commas instead of periods doesn't work.
if you use systemd, just use a drop-in (e.g. create one using systemctl edit)