Add AEC persistance service file

This commit is contained in:
imonlinux
2025-12-16 09:44:52 -08:00
committed by GitHub
parent 46c39c6ae5
commit 99157b9a8a
+21
View File
@@ -0,0 +1,21 @@
[Unit]
Description=Load PipeWire echo-cancel module for LVA
After=pipewire-pulse.service
Wants=pipewire-pulse.service
[Service]
Type=oneshot
RemainAfterExit=yes
# Use a shell so we can do a little logic:
# 1) Try to unload any existing echo-cancel module (ignore errors)
# 2) Load the WebRTC echo cancel module with our tuning options
ExecStart=/usr/bin/bash -lc '\
pactl unload-module module-echo-cancel || true; \
pactl load-module module-echo-cancel \
aec_method=webrtc \
aec_args="analog_gain_control=0 digital_gain_control=1 voice_detection=1" \
'
[Install]
WantedBy=default.target