BlueWave Studio forum
Crackling sound after Phone Call via AA - Printable Version

+- BlueWave Studio forum (https://bluewavestudio.io/community)
+-- Forum: OpenAuto Pro (https://bluewavestudio.io/community/forum-86.html)
+--- Forum: Audio features (https://bluewavestudio.io/community/forum-63.html)
+--- Thread: Crackling sound after Phone Call via AA (/thread-3036.html)



Crackling sound after Phone Call via AA - wkl3968 - 11-12-2021

I have been trying to solve this crackling sound happened after a phone call. the phone call was carried out via Android Auto. Before the phone call, music is very clear, echo cancel was great and the mic sound is clear from the receiving end. After phone call, the crackling sound (pip, pop, crack) appear. After OPA immediate reboot, the crackling sound appear straight at the beginning. After power off the OPA for sometime and then start the OPA, the crackling sound disappear. the crackling sound reappear after a phone call.

OPA version - 13 pro
Bluetooth - version 4 and not broadcom version
disabled the WIFI and onboard bluetooth
Hifiberry Digi+ Pro2
Android Auto running on Huawei phone. - no such issue with original car audio system.
no other peripheral attached when I carried out this testing. 

I hope there is a solution available. it was a journey to learn Linux and other hardware integration.

Help please.


RE: Crackling sound after Phone Call via AA - BlueWave - 11-12-2021

Hello, did you try this solution? https://www.bluewavestudio.io/community/showthread.php?tid=2142&pid=12356#pid12356


RE: Crackling sound after Phone Call via AA - wkl3968 - 11-13-2021

Thanks Bluewave for the suggestion of using this "load-module module-udev-detect tsched=0 ignore_dB=1" in default.pa. It works to remove those crackling sound. HOWEVER, the interaction with Google Assistance became delay and slowness where it took awhile for google assistant to interpret what I'm saying. I can turn on and off this effect easily by adding and removing the "tsched = 0".

with tsched = 0 ---> laggy (I call for google assistance using voice, then I say something, it took like 5 to 8s to spell it out. then it only react. I think this is due to some conflicting setting I had changed in daemon.pa: default-fragments = 4 and default-fragment-size-msec = 125. to fix this just disable the two by ";" (it was disabled in default setting).

without tsched =0 ---> instant google assistant of my vocal input. it will capture every words I say without delay.

I think we are progressing here.


RE: Crackling sound after Phone Call via AA - BlueWave - 11-13-2021

In case of any troubles with the PulseAudio, there is no single configuration that would work with all audio devices. Please have a look at https://wiki.archlinux.org/title/PulseAudio/Troubleshooting#Glitches,_skips_or_crackling and try to test several solutions.


RE: Crackling sound after Phone Call via AA - wkl3968 - 11-13-2021

Hi Bluewave,

I just installed the OPA14 (latest version) after I lost track of what I have changed. I can say that OPA14 makes integration of Hifiberry Digi+ Pro2 a lot easier. just need to add some code in default.pa.

since I play a lot of HiRes audio I made some changes to the sound quality setting in daemon.conf. the crackling sound appear when I set higher sampling spec and rate. The crackling sound can be addressed as shown below.

so, my problem now is to see how to remove the high pitch noise when google assistance starts talking and to increase my phone call volume level.

No crackling sound:
name:
sample spec: s16le 2ch 44100Hz
name:
sample spec: float32le 2ch 44100Hz
name:
sample spec: float32le 2ch 48000Hz

Crackling sound: solution is to add load-module module-udev-detect tsched = 0 to remove the crackling.
pi@raspberrypi:~ $ pacmd list-sinks | grep -e 'name:\|Hz'
name:
sample spec: s24-32le 2ch 96000Hz
name:
sample spec: float32le 2ch 96000Hz
name:
sample spec: float32le 2ch 48000Hz

I think it takes collective experience to find the solution here. I will continue to test.