If you want to use machine-speaker2-freebsd script as a program, copy icon speaker2.png to /usr/local/share/icons and machine-speaker2.desktop to /usr/local/share/applications and machine-speaker2-freebsd script to /usr/local/bin

Recording does not work yet, but it will work ...

REQUIRED JOBS:

su
cp speaker2.png /usr/local/share/icons
cp Machine-Speaker2.desktop /usr/local/share/applications
cp machine-speaker2-freebsd /usr/local/bin


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
