Pipewire 'pulse' how to change sound sample "bell-window-system"

module libpipewire-module-x11-bell, in /etc/pipewire/pipewire.conf has this:

 # Use libcanberra to play X11 Bell
 #
{ name = libpipewire-module-x11-bell
  args = {
    #sink.name = "alsa_output.pci-0000_00_1b.0.analog-stereo"
    sample.name = "bell-window-system"
    #x11.display = :0.0
    #x11.xauthority = null
  }
}

I have looked ‘everywhere’. I can’t find out where this sample is defined, nor can I list samples, and so of course I can’t add my own samples.

I tried this:

sample.name = “/data/Sounds/Effects/effects-very-clear-bell.wav”

but then after restarting the services (here on F35), there is no system beep at all.

I sure hope someone can help. Aside from cloning the entire pipewire source tree, I’m at my wits’ end.

Thanks.

At long last. Solved.

The solution is in pulse - though most of pulse (I thought) is emulated by pipewire at this point. Apparently not!

On fedora 35, pulseaudio-utils contains pactl.

Solution source: PulseAudio - ArchWiki (section 9.3 when checked on 2022-09-25 - “X11 Bell Events”).

Command to change the sample named “bell-window-system”:

pactl upload-sample /data/Sounds/Effects/effects-very-clear-bell.wav bell-window-system

I still have to test persistence across reboots, but that’s easy compared to my search up to now.