I'm trying to turn a small embedded device into a fully functional A2DP+HFP receiver.
I've got everything working, but I'm really having trouble figuring out how to get the
module-echo-cancel to work with
Here is what I have: - PulseAudio 7.1 - Ofono 1.15
I'm running a headless system, so everything is run under the root user.
I have tried loading the
module-echo-cancel from the config file, and the module loads, but when I make a call a new sink and a new source is added and the
module-echo-cancel is not automatically added to them.
I have tried manually loading the
module-echo-cancel after the call is established and the new sink and source is added. This does create a new virtual echo_cancelled source and sink, but it's only sitting IDLE and then gets suspended, the sound still goes through the initially created sink/source.
Listing the modules after the connection is established shows me this:
Module #21 Name: module-loopback Argument: source=bluez_source.30_5A_3A_19_C0_5B.echo-cancel sink_dont_move=true source_output_properties=media.role=phone Usage counter: n/a Properties: module.author = "Pierre-Louis Bossart" module.description = "Loopback from source to sink" module.version = "7.1" Module #22 Name: module-loopback Argument: source=bluez_source.30_5A_3A_19_C0_5B source_dont_move=true sink_input_properties=media.role=phone Usage counter: n/a Properties: module.author = "Pierre-Louis Bossart" module.description = "Loopback from source to sink" module.version = "7.1"
If I try to unload this modules, load the echo-cancel module and then load the loopback module the sound gets bounced back to the phone instead of being heard from the devices speakers.
I have tried to do, but didn't helped either:
Any suggestion on how can I enable the echo-cancellation for Ofono?