Hello @ferranmc,
The issue you see is caused by the fact that the image lacks the webrtc audio cancellation module.
I initially removed it because the build would not work with it.
Upon further investigation, it can be added to the image with the following changes:
Add the following to local.conf
:
ACCEPT_FSL_EULA = "1"
IMAGE_INSTALL:append = " pulseaudio-server pulseaudio-module-loopback pulseaudio-module-bluez5-discover pulseaudio-module-bluetooth-discover pulseaudio-module-bluetooth-policy pulseaudio-module-bluez5-device pulseaudio-module-cli pulseaudio-module-echo-cancel ofono pulseaudio pulseaudio-misc"
DISTRO_FEATURES:append = " webrtc"
DISTRO_FEATURES:append = " pulseaudio"
PACKAGECONFIG:append:pn-pulseaudio = " webrtc"
Fix a dependency issue in the Pulseaudio recipe at layers/openembedded-core/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
:
- PACKAGECONFIG[webrtc] = "-Dwebrtc-aec=enabled,-Dwebrtc-aec=disabled,webrtc-audio-processing"
+ PACKAGECONFIG[webrtc] = "-Dwebrtc-aec=enabled,-Dwebrtc-aec=disabled,webrtc-audio-processing-1"
From here you should be able to build the image successfully and use the script from the other post to properly initialize pulseaudio with echo cancellation.
Best Regards,
Bruno