2

In Ubuntu 23.04 and 22.10 installed in VMware 13 there is sound stuttering. Ubuntu 20.04 does not have this problem. In Fedora 38 I also had problems with sound. In fedora 38 I changed the file ~/.config/wireplumber/main.lua.d/50-alsa-config.lua. I set these values. This solved the problem.

["api.alsa.period-size"]   = 1024,
["api.alsa.headroom"]      = 8192,

But this doesn't help in Ubuntu 23.04. What can I try to fix the sound problem?

2 Answers2

0

I had the same stuttering / choppy sound issue. My config is VirtualBox on Windows10 with Ubuntu 23.04 as client. All 64bit and fully up-to-date. Nightmare to find some data which lead me into the right directions.

Although not fully tested yest I think you might find a solution here: How do I use X instead of wayland on 22.04?

In other words Wayland is causing the issue. Disable it as suggested and reboot.

Huub
  • 1
0

New version of WirePlumber uses different configuration.

You have to create file ~/.config/wireplumber/wireplumber.conf.d/50-alsa-config.conf with content:

monitor.alsa.rules = [
  {
    matches = [
      # This matches the value of the 'node.name' property of the node.
      {
        node.name = "~alsa_output.*"
      }
    ]
    actions = {
      # Apply all the desired node specific settings here.
      update-props = {
        api.alsa.period-size   = 1024
        api.alsa.headroom      = 8192
      }
    }
  }
]

See documentation: PipeWire - Stuttering Audio (in Virtual Machine)

LightBit
  • 101
  • 1