I am having this exact problem currently. I am unable to use either teamspeak3 or teamspeak5. When running teamspeak with “sudo -u USER teamspeak”, it does run, but audio does not work.
I use Plasma KDE (on wayland), and pipewire for audio.
Unfortunately, the above mentioned script did not fix the issue for me.
I have been searching everywhere for a few days now and I am getting really demoralized.
Any idea on how I could fix this?
Edit: I just tried pulseaudio instead of pipewire, and teamspeak springs to life. I did have pipewire-pulse installed, so what could be the issue here?
Edit 2: I figured it out! Turns out when running pipewire, teamspeak assumes that all audio nodes have a device.description, and a node.description. My custom sinks did not have those. screams internally