Improve troubleshooting docs for VMs
It might be helpful to amend the troubleshooting documentation at https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Troubleshooting on two points:
a) Existing "Stuttering Audio in Virtual Machine"
The current docs link to a forum comment implying configuring pipewire. The current operating model, though, seems to be configuration through wireplumber.
Working wireplumber configuration steps on Fedora 35 are
mkdir -p ~/.config/wireplumber/main.lua.d
cd ~/.config/wireplumber/main.lua.d
cp /usr/share/wireplumber/main.lua.d/50-alsa-config.lua .
then open ~/.config/wireplumber/main.lua.d/50-alsa-config.lua
in an editor and tweak the configuration at the very bottom of the file to suit the needs; for me
["api.alsa.period-size"] = 1024,
["api.alsa.headroom"] = 8192,
works. Afterwards, restart everything via systemctl --user restart wireplumber pipewire pipewire-pulse
b) New for "Firefox - speech dispatcher"
Firefox ships with Reader enabled, which is enabled for speech synthesis (read text aloud). Alas, with this merely enabled, Firefox will make pipewire hog CPU resources inside the VM.
To compensate, turn off relevant settings in Firefox by opening the about:config
URL in Firefox, configure the settings as found below, then restart Firefox.
reader.parse-on-load.enabled false
media.webspeech.synth.enabled false