Page 1 of 1

Phone Call Echo

Posted: Fri Sep 05, 2025 3:52 pm
by wkl3968
The phone audio delivered well in the car or HUDIY side. However, the one calling gets to listen their own echo. Is there a way to address this?

Re: Phone Call Echo

Posted: Fri Sep 05, 2025 4:18 pm
by hudiy
Echo cancellation is handled in PipeWire/WirePlumber by the echo-cancel module.
The module is loaded from the configuration file:
$HOME/.config/pipewire/pipewire-pulse.conf.d/hudiy.conf

The echo-cancel module in PipeWire works by creating a virtual sink (echo_cancel_sink) and a virtual source (echo_cancel_source).

For the module to work correctly and actually eliminate echo, the source output from the phone must be connected to the source created by the echo-cancel module. In addition, all audio from the phone’s sink input must go to echo_cancel_sink. This way, the module knows which input to cancel from which source.

You can verify that the routing is correct (i.e., that the phone is actually using the echo-cancel module’s sink and source) using qpwgraph.

Call handling takes place outside of Hudiy and is managed by PipeWire, WirePlumber, and oFono.