The default sndiod configuration on FreeBSD already has monitor mode enabled. To start spectrogram run env AUDIODEVICE=snd/0.monitor spectrogram