This often means the Mac isn’t sending sound through HDMI, even though the video works. A typical cause is the wrong audio setting or a failed connection for sound between the Mac and the screen.
At the bare minimum, a soundbar sold in 2024 should have at least one HDMI input and preferably more. The ability to connect multiple HDMI cables will help users with a large selection of sources ...