Unable to load module-echo-cancel at startup
Summary
Currently there is no way to load module-echo-cancel persistently during startup, as loading it via /etc/pulse/default.pa is bugged.
environment
A typical gnome3 desktop environment that starts pulseaudio as user service. In this case it's Debian bullseye with pulseaudio 3.1.7-1
Steps to reproduce
- Add the following line to /etc/pulse/default.pa:
load-module module-echo-cancel
- reboot
What is the current bug behavior?
journalctl --user -u pulseaudio
:
Apr 28 18:35:40 batou systemd[1518]: Starting Sound Service...
Apr 28 18:35:40 batou pulseaudio[1540]: Can't cancel echo between a sink and its monitor
Apr 28 18:35:40 batou pulseaudio[1540]: Failed to load module "module-echo-cancel" (argument: ""): initialization failed.
Also, the echo canceled audio sources are not available. I need to manually unload and then load the module again for it to work. Other way is to run systemctl --user restart pulseaudio
after DE session start, which makes it work, too. To me it seems like a race condition with device discovery, but I haven't been able to verify it.
What is the expected correct behavior?
module loading works, and any echo canceled sources are created when audio sources show up.