How do I pipe the microphone input to the audio output?

tumbleweed “20210805” 5.13.6-1-default x86_64
gnome 40.3.0

I wish to monitor the output from the microphone with a headset so I may check the quality and sound levels.
How do I pipe the microphone input to the audio output?

Hi
Recording and playing at the same time…


arecord -f cd - | tee output.wav | aplay -

Thank you.
That does work. It has about a half second latency, though.

Hi
Then try;


arecord --buffer-time=20 - | aplay --buffer-time=20 - –