pulse audio using too much cpu
Asked Answered
F

4

8

I'm running a Centos 7 desktop with gnome, although similar issues regularly come up with Arch and other distros.

When I checked my cpu usage via top, pulseaudio was using nearly 20% cpu.

I hunted around for solutions and there were a lot of incorrect ones, so I'm posting here for karma points to help others.

Fenske answered 20/2, 2021 at 9:57 Comment(0)
B
12

May also be related to firefox. If it only happens with FF, you can try this

Speech dispatcher requests a rather low latency and so the CPU load will go up. you can switch it off with: media.webspeech.synth.enabled in firefox about:config

from https://bugzilla.redhat.com/show_bug.cgi?id=1925810

Built answered 27/10, 2021 at 7:44 Comment(0)
K
1

In Ubuntu 22.04, Chrome Browser. Disable "Live Caption". This solved my High CPU usage by pulse audio. If it is already disabled. Check if you have any extensions which has "speech to text" feature.

Kealey answered 16/9, 2022 at 4:45 Comment(0)
F
0

The sd_espeak-ng (text to speech) got turned on somehow. To disable it, go into Settings > Universal Access > Screen Reader and turn it off.

The key insight here is that pulse's job is to route, mix and resample audio from apps to the correct device. Different apps/devices may have different samplerates (e.g.: 44.1khz to 48khz) so pulse is resampling which will typically require a lot of cpu resources. This may be silent to you which can be the source of confusion, but look at other applications that may be doing this in the background.

Note that there are also some known issues with certain versions of firefox that create a similar behavior. The solution should be an upgrade if you can or tweaks to your drivers, but the cause of cpu usage is likely the same.

Fenske answered 20/2, 2021 at 9:57 Comment(0)
C
0

A solution I found on a forum and which worked for me: "Also try deleting the files in /home/YourUserName/.config/pulse then running pulseaudio -k in the terminal to restart pulse. Maybe the config files are getting messed up causing this."

Crafty answered 28/8 at 9:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.