svxlink icon indicating copy to clipboard operation
svxlink copied to clipboard

svxlink with bluealsa - random audio stuttering and 100% CPU

Open s1lviu opened this issue 9 months ago • 1 comments

Hello,

I am experiencing intermittent audio stuttering when using svxlink (latest commit version) with a Bluetooth speaker, which coincides with CPU usage spiking to 100%. This issue seems to be triggered especially when adjusting the volume, either through physical buttons on the device or via software controls.

Below are the relevant configurations:

svxlink.conf:

... 
# Speaker
[Tx1]
TYPE=Local
TX_ID=T2
AUDIO_DEV="alsa:bluealsa"
AUDIO_CHANNEL=0
PTT_TYPE=NONE
DEEMPHASIS=1
GAIN=6
MASTER_GAIN=9
...

/etc/asound.conf:

pi@svxlink:~ $ cat /etc/asound.conf
defaults.bluealsa {
    interface "hci0"
    device "D9:35:75:33:7F:XX"
    profile "a2dp"
    service "org.bluealsa"
}

Attached are screenshots that illustrate the issue:

Image

Image

Any insights or suggestions to mitigate this issue would be greatly appreciated.

Thank you!

s1lviu avatar Feb 14 '25 19:02 s1lviu

Hi Silvio, I'm sorry I've not replied sooner.

It seems to me that you are running additional software, of which I am not conversant. It does not appear to be 'standard' in the way svxlink runs under normal circumstances.

It must be the additional software introducing delay to the speech.

Chris

On Fri, 14 Feb 2025 at 19:09, Silviu Stroe @.***> wrote:

Hello,

I am experiencing intermittent audio stuttering when using svxlink (latest commit version) with a Bluetooth speaker, which coincides with CPU usage spiking to 100%. This issue seems to be triggered especially when adjusting the volume, either through physical buttons on the device or via software controls.

Below are the relevant configurations:

svxlink.conf:

...

Speaker

[Tx1] TYPE=Local TX_ID=T2 AUDIO_DEV="alsa:bluealsa" AUDIO_CHANNEL=0 PTT_TYPE=NONE DEEMPHASIS=1 GAIN=6 MASTER_GAIN=9 ...

/etc/asound.conf:

@.***:~ $ cat /etc/asound.conf defaults.bluealsa { interface "hci0" device "D9:35:75:33:7F:XX" profile "a2dp" service "org.bluealsa" }

Attached are screenshots that illustrate the issue:

image.png (view on web) https://github.com/user-attachments/assets/b6f9f5f5-5a8a-4659-b986-45814d6f2c20

image.png (view on web) https://github.com/user-attachments/assets/ce8817bf-6918-4eff-8021-67554f2b7db0

Any insights or suggestions to mitigate this issue would be greatly appreciated.

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/sm0svx/svxlink/issues/693, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5DUPFUDCKX3IT5JFH32PY5M7AVCNFSM6AAAAABXFI2MAOVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2TINJSGI4DIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: s1lviu]s1lviu created an issue (sm0svx/svxlink#693) https://github.com/sm0svx/svxlink/issues/693

Hello,

I am experiencing intermittent audio stuttering when using svxlink (latest commit version) with a Bluetooth speaker, which coincides with CPU usage spiking to 100%. This issue seems to be triggered especially when adjusting the volume, either through physical buttons on the device or via software controls.

Below are the relevant configurations:

svxlink.conf:

...

Speaker

[Tx1] TYPE=Local TX_ID=T2 AUDIO_DEV="alsa:bluealsa" AUDIO_CHANNEL=0 PTT_TYPE=NONE DEEMPHASIS=1 GAIN=6 MASTER_GAIN=9 ...

/etc/asound.conf:

@.***:~ $ cat /etc/asound.conf defaults.bluealsa { interface "hci0" device "D9:35:75:33:7F:XX" profile "a2dp" service "org.bluealsa" }

Attached are screenshots that illustrate the issue:

image.png (view on web) https://github.com/user-attachments/assets/b6f9f5f5-5a8a-4659-b986-45814d6f2c20

image.png (view on web) https://github.com/user-attachments/assets/ce8817bf-6918-4eff-8021-67554f2b7db0

Any insights or suggestions to mitigate this issue would be greatly appreciated.

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/sm0svx/svxlink/issues/693, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5DUPFUDCKX3IT5JFH32PY5M7AVCNFSM6AAAAABXFI2MAOVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2TINJSGI4DIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

f5vmr avatar Mar 23 '25 08:03 f5vmr