sudo pkg install pipewire wireplumber pipewire-spa-oss sox virtual_oss ffmpeg

mkdir -p /tmp/runtime-$(whoami)
export XDG_RUNTIME_DIR=/tmp/runtime-$(whoami)

pipewire &
pipewire-pulse &
wireplumber &

pw-play happy_birthday.wav

cat /dev/sndstat

Installed devices:
pcm0: <Realtek ALC221 (Analog)> (play/rec) default
pcm1: <Realtek ALC221 (Analog 2.0+HP)> (play)
pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play)
No devices installed from userspace.

sudo sysctl hw.snd.default_unit=0

Test voice. If it works, you can add the result to the  /etc/sysctl.conf file.

hw.snd.default_unit=0
