summaryrefslogtreecommitdiffstats
path: root/.config/pipewire/pipewire-pulse.sh
blob: 4abff5868c08a5b14caa9ff4c00b879d33cf7312 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

sleep 3

source_name="master-mono"

source_index=$(pactl list short sources |
	grep "input.*pci-" |
	head -n 1 |
	awk '{print $1;}')

echo "${source_index}"

#pactl load-module module-remap-source \
#	"source_name=${source_name}" \
#	"master=${source_index}" \
#	use_master_format=1 \
#	master_channel_map=front-left \
#	channel_map=mono \
#	channels=1

pactl load-module module-echo-cancel \
	"source_name=${source_name}" \
	"master=${source_index}" \
	use_master_format=1 \
	aec_method="webrtc" \
	aec_args='"beamforming=1 mic_geometry=-1,0,0,1,0,0"'

pactl set-default-source "${source_name}"
remember that computers suck.