alsa

Advanced Linux Sound Architecture. This system works under the modern sound system like Pulseaudio Pipewire. So debugging this layer before going up is

Instant playback microphone to speaker

arecord -f cd - | aplay -

List sound devices

aplay -L

Play sound on specified device

aplay -D sysdefault sound.wav