Chromium not in pulseaudio control and no sound from it

chromium does not appear in the pulseaudio control. Firefox is there and produces sounds normally, Dragon Player also appears there & plays sound. Despite chromium running, it does not appear there, and YouTube gives no sounds. I’ve tested this on chromium version 129 & 131. I suspect this occurred after the last KDE update, since 129 was producing sounds.
KDE Plasma is version 6.1.5, KDE Framework is version 6.6.0, Qt 6.7.3, Kernel 6.6.47 (64 bit), Graphics is Wayland.
I’m not sure this is a KDE issue, it just seems the mostly likely culprit at the moment.

What operating system do you use? It is always a good idea to have the content from Info CenterCopy Details in a help post on this forum.

One might guess that you have a broken PulseAudio config, and when your operating system switched to using Pipewire instead of PulseAudio - Chromium continues to try to use the incorrect configuration - I would try to run rm -rf ~/.pulse* and restart.

Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.6.47-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 62.8 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT

I don’t have a ~/.pulse
There are files under ~/.config/pulse
960b8e43500cdb8436f71ba560cd1001-card-database.x86_64-pc-linux-gnu.gdbm 960b8e43500cdb8436f71ba560cd1001-default-source 960b8e43500cdb8436f71ba560cd1001-stream-volumes.x86_64-pc-linux-gnu.gdbm
960b8e43500cdb8436f71ba560cd1001-default-sink 960b8e43500cdb8436f71ba560cd1001-device-volumes.x86_64-pc-linux-gnu.gdbm cookie

It may be a good idea to set it the problem is fixed if you move that folder away - so it won’t be used but you’d be able to put it back if needed.

I moved the folder & rebooted.
Sound setting showed only “Notification Sounds” until I started a youtube in Firefox, then speech-dispatch-dummy & Firefox appear. I also played a youtube in chromium, but same result, it does not appear in sound settings and there is no sound for the video.
The pulse folder came back, with only “cookie” in it.

Can you please post the details from Info CenterCopy Details ?

Info paste is above.

Where? We’re missing all the details.

Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.6.47-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 62.8 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT

These are some excerps from “pactl list”
Client #85
Driver: PipeWire
Owner Module: 2
application.name = “Chromium input”
application.process.binary = “chrome”
Client #124
Driver: PipeWireapplication.
Owner Module: 2
application.name = “Firefox”
application.process.binary = “firefox”

You’re using PipeWire - that’s good. The pactl list you posted just includes “Chromium Input”, not output.

Firefox has no output entry either.
I don’t actually understand Pipewire/Pulse.
Oh Firefox has this entry:
module-stream-restore.id = “sink-input-by-application-name:Firefox”
chromium does not

I had to start a YouTube video in chromium, then I got
module-stream-restore.id = “sink-input-by-application-name:Chromium”
but still no sound.

So PipeWire is the new hottest Wayland compatible sound server (and also video) that replaces PulseAudio. It includes a PulseAudio compatible API so that your PulseAudio clients - such as Chromium (and Firefox) can work out of the box.

So, when I run a chromium browser, and I hear the audio, I have some entries in pactl (the PulseAudio control CLI - it works through the PipeWire PulseAudio compatibility, and PipeWire mostly doesn’t have as useful tools yet):

  • Sink Input #2593 - “input” here means - I think - that the server is receiving audio. We can see in the media.class field it says “Stream/Output/Audio”. If we would have the browser recording (like in a video meeting), you’d also see a Source Output object with media.class set to “Stream/Input/Audio”. I hope its clear what is going on here.
  • There are a couple of Client objects. I’m not sure why there are two, but only one is connect to the sink - you can match the sink’s Client attribute.

I can also see a Firefox “Sink Input” object, and looking at the “Sink Input” object, it has a “Sink” attribute set to “2133”. The chromium’s “Sink Input” object also has the “Sink” attribute set to “2133”. Looking for object “2133”, we can see it is:

Sink #2133
	State: RUNNING
	Name: alsa_output.pci-0000_00_1f.3.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 20316 /  31% / -30.52 dB,   front-right: 20316 /  31% / -30.52 dB
	        balance 0.00

So both browsers are playing to the “Built-in Audio Analog Stereo”, an ALSA device.

See if you can figure out where the Chromium sink input object on your system is connected to.

Okay I will look at. I thought Pipewire was a later version of Pulse, didn’t realise its a separate thing. I had a look at what is using Pulse & found mostly speech for accessiblity (which I do not use) & k3b (I also don’t use). I’m going to reconfigure to turn off speech & espeak & deinstall k3b which should remove most of the pulseaudio dependencies, which I hope will simplify the whole sound setup. This is quite complex so make take a while.

You don’t need to remove PulseAudio, just make sure it isn’t running (check using systemctl --user status pulseaudio.service), but as pactl sees the PipeWire server and it sees Chromium in it - this is definitely not the problem.

I wasn’t going to remove pulseaudio, just stop apps from using it.
I noticed that the Firefox entry is a “Sink Input #125” wheras the chromium entry is “Client #85”.

If Chromium does not have a sink input object, then if isn’t playing

I did another list with a YouTube playing & (eventually) found this
Sink Input #1281
Driver: PipeWire
Client: 1280
Sink: 1180
Channel Map: front-left,front-right
Format: pcm, format.sample_format = “"float32le"” format.rate = “48000” format.channels = “2” format.channel_map = “"front-left,front-right"”
Mute: yes
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Resample method: PipeWire
Properties:
application.name = “Chromium”
application.process.binary = “chrome”
application.icon_name = “chromium-browser”
media.name = “Playback”
node.name = “Chromium”
media.class = “Stream/Output/Audio”
Note the “Mute”. I’ve cut out lots of lines which I thought were irrelevant.
In chromium the video is not muted.