Experiencing Stuttering and Audio Interruptions in Bluetooth Calls with Pulseaudio

Hi @bruno.tx,

I tested the image with the configuration you provided and the given script, and I successfully connected to the phone. The call works fine, but there’s noticeable echo. To fix this, I used the script mentioned in this link to enable the echo canceller. However, upon execution, I encountered the following errors:

Loading echo cancellation module  
Failure: Module initialization failed.  
Setting echo cancellation as default sink and source  
Failure: No such entity  
Failure: No such entity.  

To investigate further, I configured PulseAudio in debug mode by modifying the script and replacing pulseaudio --start with:

pulseaudio -v > pulseaudio_log.txt 2>&1 &

Additionally, I edited the daemon.conf file with the following command to enable debug logging:

vi /etc/pulse/daemon.conf

Then, I set the log level to debug:

log-level = debug

In the log file (pulseaudio_log.txt), I noticed the system is reporting the following issue:

E: [pulseaudio] module-echo-cancel.c: Master sink not found
E: [pulseaudio] module.c: Failed to load module "module-echo-cancel" (argument: "sink_name=echosink source_name=echosource aec_method=webrtc aec_args=analog_gain_control=0\ digital_gain_control=1 source_master=alsa_input.hw_0_0 sink_master=alsa_output.hw_0_0"): initialization failed.

Additionally, I directly tried the following command:

pactl load-module module-echo-cancel
25
pactl load-module module-echo-cancel aec_method=webrtc
Failure: Module initialization failed  

And I received the following error:

E: [pulseaudio] module-echo-cancel.c: Invalid echo canceller implementation 'webrtc'  
E: [pulseaudio] module.c: Failed to load module "module-echo-cancel" (argument: "aec_method=webrtc"): initialization failed.  

Do you have any suggestions or additional steps to resolve this issue?

Thanks and best regards,
Ferran