[Unit]
Description=Set Default Audio Devices
After=pulseaudio.service
Wants=pulseaudio.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c '\
sleep 5 && \
pactl unload-module module-echo-cancel || true && \
pactl load-module module-echo-cancel \
aec_method=webrtc \
source_master=alsa_input.usb-046d_Brio_101_2520APKJ1778-02.mono-fallback \
sink_master=alsa_output.usb-Solid_State_System_Co._Ltd._USB_PnP_Audio_Device_000000000000-00.analog-stereo \
source_name=default_mic_aec \
sink_name=default_output_aec \
source_properties="device.description=Microphone_with_AEC" \
sink_properties="device.description=Speaker_with_AEC" && \
pactl set-default-source default_mic_aec && \
pactl set-default-sink default_output_aec'
[Install]
WantedBy=default.target